Mercurial > mplayer.hg
comparison libmpdemux/demux_avs.c @ 14695:253b2c16c668
10l
author | faust3 |
---|---|
date | Sun, 13 Feb 2005 21:36:56 +0000 |
parents | 37116118ab6a |
children | 71a915145b2c |
comparison
equal
deleted
inserted
replaced
14694:b6f77e4da86c | 14695:253b2c16c668 |
---|---|
83 } AVS_T; | 83 } AVS_T; |
84 | 84 |
85 AVS_T *initAVS(const char *filename) | 85 AVS_T *initAVS(const char *filename) |
86 { | 86 { |
87 AVS_T *AVS = (AVS_T *) malloc (sizeof(AVS_T)); | 87 AVS_T *AVS = (AVS_T *) malloc (sizeof(AVS_T)); |
88 AVS_Value arg0 = avs_new_value_string(filename); | |
89 AVS_Value args = avs_new_value_array(&arg0, 1); | |
90 | |
88 memset(AVS, 0, sizeof(AVS_T)); | 91 memset(AVS, 0, sizeof(AVS_T)); |
89 | 92 |
90 #ifdef WIN32_LOADER | 93 #ifdef WIN32_LOADER |
91 Setup_LDT_Keeper(); | 94 Setup_LDT_Keeper(); |
92 #endif | 95 #endif |
115 { | 118 { |
116 mp_msg(MSGT_DEMUX, MSGL_V, "AVS: avs_create_script_environment failed\n"); | 119 mp_msg(MSGT_DEMUX, MSGL_V, "AVS: avs_create_script_environment failed\n"); |
117 return NULL; | 120 return NULL; |
118 } | 121 } |
119 | 122 |
120 AVS_Value arg0 = avs_new_value_string(filename); | |
121 AVS_Value args = avs_new_value_array(&arg0, 1); | |
122 | 123 |
123 AVS->handler = AVS->avs_invoke(AVS->avs_env, "Import", args, 0); | 124 AVS->handler = AVS->avs_invoke(AVS->avs_env, "Import", args, 0); |
124 | 125 |
125 if (avs_is_error(AVS->handler)) | 126 if (avs_is_error(AVS->handler)) |
126 { | 127 { |