summaryrefslogtreecommitdiffstats
path: root/ext/dv/gstdvdec.c
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2004-10-30 06:44:02 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2004-10-30 06:44:02 +0000
commit4ece6347f9a8f4d3536054705345ea5f605cad84 (patch)
tree854ab226ff87d41902a2cbcb3b9f611baf8b8486 /ext/dv/gstdvdec.c
parent66fe9f11aecbd64a59107903722269fc90f8e762 (diff)
ext/dv/gstdvdec.c: Set EOS on the element when processing an EOS event.
Original commit message from CVS: * ext/dv/gstdvdec.c: (gst_dvdec_handle_sink_event): Set EOS on the element when processing an EOS event. * ext/speex/gstspeexdec.h: * ext/speex/gstspeexenc.h: Only keep a const ptr to the mode * gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps_with_data), (gst_riff_create_audio_template_caps): Allow WMAV3, with up to 6 channels. * gst/asfdemux/gstasfmux.c: (gst_asfmux_request_new_pad): Don't call gst_pad_set_event_function on a sink pad. * gst/mpegstream/gstdvddemux.c: (gst_dvd_demux_get_subpicture_stream), (gst_dvd_demux_set_cur_audio), (gst_dvd_demux_set_cur_subpicture): Copy the explicit caps that were set across to the cur_* pads, instead of trying to use a possibly non-existent negotiated caps. Reset the type of subpicture pads to UNKNOWN after calling init_stream, so that the caps get set.
Diffstat (limited to 'ext/dv/gstdvdec.c')
-rw-r--r--ext/dv/gstdvdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/dv/gstdvdec.c b/ext/dv/gstdvdec.c
index 19bf308f..dbfbe5b3 100644
--- a/ext/dv/gstdvdec.c
+++ b/ext/dv/gstdvdec.c
@@ -657,6 +657,9 @@ gst_dvdec_handle_sink_event (GstDVDec * dvdec)
gst_event_ref (event);
gst_pad_push (dvdec->audiosrcpad, GST_DATA (event));
}
+ if (type == GST_EVENT_EOS) {
+ gst_element_set_eos (GST_ELEMENT (dvdec));
+ }
break;
}
case GST_EVENT_DISCONTINUOUS: