diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-08-10 17:37:50 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-08-10 17:37:50 +0000 |
commit | f86d8e69cb6655f42575055862d6a9d5c4f6d2e5 (patch) | |
tree | 142ff685cc5b29407574b3cb8cd8685a2424ee39 /src/libffmpeg/xine_decoder.c | |
parent | 9cdb6c61b02aced10c14ecf71193bd17c01c2d7a (diff) | |
download | xine-lib-f86d8e69cb6655f42575055862d6a9d5c4f6d2e5.tar.gz xine-lib-f86d8e69cb6655f42575055862d6a9d5c4f6d2e5.tar.bz2 |
minor bugfixes, make debug should work now, codec close hopefully works too
CVS patchset: 405
CVS date: 2001/08/10 17:37:50
Diffstat (limited to 'src/libffmpeg/xine_decoder.c')
-rw-r--r-- | src/libffmpeg/xine_decoder.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c index 9d4e20747..ce208b724 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.3 2001/08/08 20:48:32 guenter Exp $ + * $Id: xine_decoder.c,v 1.4 2001/08/10 17:37:50 guenter Exp $ * * xine decoder plugin using ffmpeg * @@ -280,8 +280,12 @@ static void ff_close (video_decoder_t *this_gen) { ff_decoder_t *this = (ff_decoder_t *) this_gen; - avcodec_close (&this->context); - this->video_out->close(this->video_out); + if (this->decoder_ok) { + avcodec_close (&this->context); + + this->video_out->close(this->video_out); + this->decoder_ok = 0; + } } static char *ff_get_id(void) { |