From: James S. <jst...@us...> - 2003-02-23 01:22:59
|
Update of /cvsroot/xine/xine-lib/src/libffmpeg In directory sc8-pr-cvs1:/tmp/cvs-serv9550 Modified Files: xine_decoder.c Log Message: Fix crash when opening ffmpeg decoder fails Index: xine_decoder.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/libffmpeg/xine_decoder.c,v retrieving revision 1.96 retrieving revision 1.97 diff -u -r1.96 -r1.97 --- xine_decoder.c 22 Feb 2003 17:32:31 -0000 1.96 +++ xine_decoder.c 23 Feb 2003 01:22:56 -0000 1.97 @@ -151,6 +151,7 @@ if (avcodec_open (this->context, this->codec) < 0) { printf ("ffmpeg: couldn't open decoder\n"); free(this->context); + this->context = NULL; this->stream->stream_info[XINE_STREAM_INFO_VIDEO_HANDLED] = 0; return; } |