From 8f841a3dd9888a0bef37a9118e667a7489a8179d Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 1 May 2003 21:25:14 +0000 Subject: - added a lookup entry for Theora and don't just ignore Theora streams if libtheora is not installed (now front-ends really know they're playing theora video and can show nice errors if the video doesn't play) CVS patchset: 4738 CVS date: 2003/05/01 21:25:14 --- src/demuxers/demux_ogg.c | 7 ++++--- src/xine-engine/buffer_types.c | 9 ++++++++- 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/demuxers/demux_ogg.c b/src/demuxers/demux_ogg.c index b0de7ffd6..e5b714d2d 100644 --- a/src/demuxers/demux_ogg.c +++ b/src/demuxers/demux_ogg.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: demux_ogg.c,v 1.88 2003/05/01 19:04:32 heinchen Exp $ + * $Id: demux_ogg.c,v 1.89 2003/05/01 21:25:14 hadess Exp $ * * demultiplexer for ogg streams * @@ -915,9 +915,9 @@ static void demux_ogg_send_header (demux_ogg_t *this) { *val++=0; this->video_fifo->put (this->video_fifo, buf); -#ifdef HAVE_THEORA } else if (!strncmp (&op.packet[1], "theora", 4)) { +#ifdef HAVE_THEORA printf ("demux_ogg: Theorastreamsupport is highly alpha at the moment\n"); if (theora_decode_header(&this->t_info, &op)>=0) { @@ -939,13 +939,14 @@ static void demux_ogg_send_header (demux_ogg_t *this) { this->stream->stream_info[XINE_STREAM_INFO_FRAME_DURATION] = ((int64_t) 90000*this->t_info.fps_denominator)/this->t_info.fps_numerator; - } else { /*Rejected stream*/ printf ("demux_ogg: A theora header was rejected by libtheora\n"); this->buf_types[stream_num] = BUF_CONTROL_NOP; this->preview_buffers[stream_num] = 5; /* FIXME: don't know */ } +#else + this->buf_types[stream_num] = BUF_VIDEO_THEORA; #endif } else { diff --git a/src/xine-engine/buffer_types.c b/src/xine-engine/buffer_types.c index 7941e5db6..0dc2f4c4e 100644 --- a/src/xine-engine/buffer_types.c +++ b/src/xine-engine/buffer_types.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: buffer_types.c,v 1.59 2003/04/27 15:10:57 jstembridge Exp $ + * $Id: buffer_types.c,v 1.60 2003/05/01 21:25:15 hadess Exp $ * * * contents: @@ -544,6 +544,13 @@ static video_db_t video_db[] = { BUF_VIDEO_IMAGE, "Image" }, +{ + { + 0, + }, + BUF_VIDEO_THEORA, + "OggTheora Video" +}, { { 0 }, 0, "last entry" } }; -- cgit v1.2.3