summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/demuxers/demux_ogg.c17
-rw-r--r--src/demuxers/demux_real.c4
-rw-r--r--src/demuxers/demux_ts.c4
3 files changed, 18 insertions, 7 deletions
diff --git a/src/demuxers/demux_ogg.c b/src/demuxers/demux_ogg.c
index 043c6b714..d40e42f7c 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.65 2003/02/01 18:57:33 guenter Exp $
+ * $Id: demux_ogg.c,v 1.66 2003/02/02 17:36:06 guenter Exp $
*
* demultiplexer for ogg streams
*
@@ -757,7 +757,7 @@ static void demux_ogg_send_content (demux_ogg_t *this) {
/* now we've got at least one new page */
cur_serno = ogg_page_serialno (&this->og);
-
+
for (i = 0; i<this->num_streams; i++) {
if (this->oss[i].serialno == cur_serno) {
stream_num = i;
@@ -767,7 +767,18 @@ static void demux_ogg_send_content (demux_ogg_t *this) {
if (stream_num < 0) {
printf ("demux_ogg: error: unknown stream, serialnumber %d\n", cur_serno);
- return;
+
+ if (!ogg_page_bos(&this->og)) {
+ printf ("demux_ogg: help, stream with no beginning!\n");
+ }
+
+ printf ("demux_ogg: adding late stream with serial number %d (all content will be discarded)\n",
+ cur_serno);
+
+ ogg_stream_init(&this->oss[this->num_streams], cur_serno);
+ stream_num = this->num_streams;
+ this->buf_types[stream_num] = 0;
+ this->num_streams++;
}
ogg_stream_pagein(&this->oss[stream_num], &this->og);
diff --git a/src/demuxers/demux_real.c b/src/demuxers/demux_real.c
index fe9863d87..37d5f49f3 100644
--- a/src/demuxers/demux_real.c
+++ b/src/demuxers/demux_real.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2000-2002 the xine project
+ * Copyright (C) 2000-2003 the xine project
*
* This file is part of xine, a free video player.
*
@@ -28,7 +28,7 @@
*
* Based on FFmpeg's libav/rm.c.
*
- * $Id: demux_real.c,v 1.40 2003/01/31 14:06:10 miguelfreitas Exp $
+ * $Id: demux_real.c,v 1.41 2003/02/02 17:36:06 guenter Exp $
*/
#ifdef HAVE_CONFIG_H
diff --git a/src/demuxers/demux_ts.c b/src/demuxers/demux_ts.c
index a529df41e..004d696c9 100644
--- a/src/demuxers/demux_ts.c
+++ b/src/demuxers/demux_ts.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2000-2002 the xine project
+ * Copyright (C) 2000-2003 the xine project
*
* This file is part of xine, a free video player.
*
@@ -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_ts.c,v 1.78 2003/01/31 14:06:10 miguelfreitas Exp $
+ * $Id: demux_ts.c,v 1.79 2003/02/02 17:36:06 guenter Exp $
*
* Demultiplexer for MPEG2 Transport Streams.
*