gst/matroska/matroska-demux.c: Signal no-more-pads (so it works in playbin).

Original commit message from CVS:
* gst/matroska/matroska-demux.c: (gst_matroska_demux_loop_stream):
Signal no-more-pads (so it works in playbin).
This commit is contained in:
Ronald S. Bultje 2004-11-11 20:37:03 +00:00
parent 31d7cd659a
commit 780c4c1c86
2 changed files with 22 additions and 14 deletions

View File

@ -1,3 +1,8 @@
2004-11-11 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/matroska/matroska-demux.c: (gst_matroska_demux_loop_stream):
Signal no-more-pads (so it works in playbin).
2004-11-11 Ronald S. Bultje <rbultje@ronald.bitfreak.net> 2004-11-11 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/musepack/gstmusepackreader.cpp: * ext/musepack/gstmusepackreader.cpp:

View File

@ -2328,7 +2328,11 @@ gst_matroska_demux_loop_stream (GstMatroskaDemux * demux)
break; break;
} }
case GST_MATROSKA_ID_CLUSTER:{ case GST_MATROSKA_ID_CLUSTER:
if (demux->state != GST_MATROSKA_DEMUX_STATE_DATA) {
demux->state = GST_MATROSKA_DEMUX_STATE_DATA;
gst_element_no_more_pads (GST_ELEMENT (demux));
} else {
if (!gst_ebml_read_master (ebml, &id)) { if (!gst_ebml_read_master (ebml, &id)) {
res = FALSE; res = FALSE;
break; break;
@ -2341,10 +2345,9 @@ gst_matroska_demux_loop_stream (GstMatroskaDemux * demux)
* out of the loop to handle a possible error. We'll * out of the loop to handle a possible error. We'll
* get back here if it's recoverable. */ * get back here if it's recoverable. */
gst_matroska_demux_parse_cluster (demux); gst_matroska_demux_parse_cluster (demux);
demux->state = GST_MATROSKA_DEMUX_STATE_DATA;
res = FALSE; res = FALSE;
break;
} }
break;
default: default:
GST_WARNING ("Unknown matroska file header ID 0x%x", id); GST_WARNING ("Unknown matroska file header ID 0x%x", id);