From 12edc454179aeda25c43b125629a133a6cf0cb5d Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 7 Jan 2003 16:36:52 +0000 Subject: - implement XINE_STREAM_INFO_*_HANDLED for the ffmpeg decoder CVS patchset: 3810 CVS date: 2003/01/07 16:36:52 --- src/libffmpeg/xine_decoder.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c index 01cf3527f..695635e6f 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.83 2002/12/23 21:26:12 miguelfreitas Exp $ + * $Id: xine_decoder.c,v 1.84 2003/01/07 16:36:52 hadess Exp $ * * xine decoder plugin using ffmpeg * @@ -143,6 +143,8 @@ static void init_video_codec (ff_video_decoder_t *this, xine_bmiheader *bih) { free(this->context); return; } + + this->stream->stream_info[XINE_STREAM_INFO_VIDEO_HANDLED] = 1; this->decoder_ok = 1; this->stream->video_out->open (this->stream->video_out, this->stream); @@ -831,6 +833,8 @@ static void ff_audio_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) return; } + this->stream->stream_info[XINE_STREAM_INFO_AUDIO_HANDLED] = 1; + this->decoder_ok = 1; return; -- cgit v1.2.3