summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@users.sourceforge.net>2003-01-07 16:36:52 +0000
committerBastien Nocera <hadess@users.sourceforge.net>2003-01-07 16:36:52 +0000
commit12edc454179aeda25c43b125629a133a6cf0cb5d (patch)
treef448b1d2d807835c6cc289ead049f98f4ad82c75
parente0e692801bf4058af355895d9a62e22261b4a797 (diff)
downloadxine-lib-12edc454179aeda25c43b125629a133a6cf0cb5d.tar.gz
xine-lib-12edc454179aeda25c43b125629a133a6cf0cb5d.tar.bz2
- implement XINE_STREAM_INFO_*_HANDLED for the ffmpeg decoder
CVS patchset: 3810 CVS date: 2003/01/07 16:36:52
-rw-r--r--src/libffmpeg/xine_decoder.c6
1 files changed, 5 insertions, 1 deletions
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;