summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-11-10 01:00:35 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-11-10 01:00:35 +0000
commite259781818adb368ae8ad56234dcdde4f5644448 (patch)
tree80c7406778cadeedb006b667a5aa165a5e443433 /src
parenta0916f87f9581f4db053a48f1256d3f93e06e7ec (diff)
downloadxine-lib-e259781818adb368ae8ad56234dcdde4f5644448.tar.gz
xine-lib-e259781818adb368ae8ad56234dcdde4f5644448.tar.bz2
Even if video is not handled, let's say that it is there, so the frontends can consider the decoder plugin missing.
CVS patchset: 8365 CVS date: 2006/11/10 01:00:35
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_ogg.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/demuxers/demux_ogg.c b/src/demuxers/demux_ogg.c
index 9a44d77cd..efe60226d 100644
--- a/src/demuxers/demux_ogg.c
+++ b/src/demuxers/demux_ogg.c
@@ -19,7 +19,7 @@
*/
/*
- * $Id: demux_ogg.c,v 1.169 2006/11/09 15:13:19 dgp85 Exp $
+ * $Id: demux_ogg.c,v 1.170 2006/11/10 01:00:35 dgp85 Exp $
*
* demultiplexer for ogg streams
*
@@ -1177,6 +1177,7 @@ static void decode_theora_header (demux_ogg_t *this, const int stream_num, ogg_p
}
#else
this->si[stream_num]->buf_types = BUF_VIDEO_THEORA;
+ this->num_video_streams++;
_x_meta_info_set(this->stream, XINE_META_INFO_VIDEOCODEC, "theora");
#endif
}
@@ -1290,16 +1291,16 @@ static void decode_anxdata_header (demux_ogg_t *this, const int stream_num, ogg_
this->si[stream_num]->buf_types = BUF_AUDIO_VORBIS;
this->num_audio_streams++;
} else if (!strncmp(content_type, "audio/x-speex", content_type_length)) {
+ this->num_audio_streams++;
#ifdef HAVE_SPEEX
this->si[stream_num]->buf_types = BUF_AUDIO_SPEEX;
- this->num_audio_streams++;
#else
this->si[stream_num]->buf_types = BUF_CONTROL_NOP;
#endif
} else if (!strncmp(content_type, "video/x-theora", content_type_length)) {
+ this->num_video_streams++;
#ifdef HAVE_THEORA
this->si[stream_num]->buf_types = BUF_VIDEO_THEORA;
- this->num_video_streams++;
#else
this->si[stream_num]->buf_types = BUF_CONTROL_NOP;
#endif