Mercurial > mplayer.hg
changeset 14695:253b2c16c668
10l
author | faust3 |
---|---|
date | Sun, 13 Feb 2005 21:36:56 +0000 |
parents | b6f77e4da86c |
children | f0ff9c135053 |
files | libmpdemux/demux_avs.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_avs.c Sun Feb 13 13:43:09 2005 +0000 +++ b/libmpdemux/demux_avs.c Sun Feb 13 21:36:56 2005 +0000 @@ -85,6 +85,9 @@ AVS_T *initAVS(const char *filename) { AVS_T *AVS = (AVS_T *) malloc (sizeof(AVS_T)); + AVS_Value arg0 = avs_new_value_string(filename); + AVS_Value args = avs_new_value_array(&arg0, 1); + memset(AVS, 0, sizeof(AVS_T)); #ifdef WIN32_LOADER @@ -117,8 +120,6 @@ return NULL; } - AVS_Value arg0 = avs_new_value_string(filename); - AVS_Value args = avs_new_value_array(&arg0, 1); AVS->handler = AVS->avs_invoke(AVS->avs_env, "Import", args, 0);