# HG changeset patch # User faust3 # Date 1108330616 0 # Node ID 253b2c16c668a248e9607c24fb6a409e0a547385 # Parent b6f77e4da86c42eb176d36157354b8c7ba81f5ee 10l diff -r b6f77e4da86c -r 253b2c16c668 libmpdemux/demux_avs.c --- 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);