From 1969b2a0a760c94e7b05aa209df4449545130a93 Mon Sep 17 00:00:00 2001 From: Johns Date: Sun, 22 Jan 2012 22:46:52 +0100 Subject: Fix bug: close codec missing. --- codec.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'codec.c') diff --git a/codec.c b/codec.c index fb373d5..a50187c 100644 --- a/codec.c +++ b/codec.c @@ -357,6 +357,10 @@ void CodecVideoOpen(VideoDecoder * decoder, const char *name, int codec_id) Debug(3, "codec: using codec %s or ID %#04x\n", name, codec_id); + if ( decoder->VideoCtx ) { + Error(_("codec: missing close\n")); + } + // // ffmpeg compatibility hack // -- cgit v1.2.3