From da7a115d07adb077d22d389b8d48842622a181e5 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 7 Mar 2003 01:22:54 +0000 Subject: sanity check CVS patchset: 4355 CVS date: 2003/03/07 01:22:54 --- src/libffmpeg/xine_decoder.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c index 83286f0ef..36988d383 100644 --- a/src/libffmpeg/xine_decoder.c +++ b/src/libffmpeg/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.98 2003/02/23 22:03:16 guenter Exp $ + * $Id: xine_decoder.c,v 1.99 2003/03/07 01:22:54 miguelfreitas Exp $ * * xine decoder plugin using ffmpeg * @@ -723,7 +723,8 @@ static void ff_reset (video_decoder_t *this_gen) { #endif this->size = 0; - avcodec_flush_buffers(this->context); + if(this->context) + avcodec_flush_buffers(this->context); } static void ff_discontinuity (video_decoder_t *this_gen) { -- cgit v1.2.3