summaryrefslogtreecommitdiff
path: root/ext/dv
diff options
context:
space:
mode:
authorEdward Hervey <edward.hervey@collabora.co.uk>2012-07-13 13:51:48 +0200
committerEdward Hervey <edward.hervey@collabora.co.uk>2012-07-13 13:51:48 +0200
commitf063e40af7c7ab7e4221e1a61a327884260220de (patch)
tree0471b361101740257a7c00bb0958aeb6e42a836f /ext/dv
parent0cff483bd70d005a1126ebdcce4e52aef7bb9867 (diff)
downloadgstreamer-plugins-good-f063e40af7c7ab7e4221e1a61a327884260220de.tar.gz
demux: Push STREAM_START event when needed
Diffstat (limited to 'ext/dv')
-rw-r--r--ext/dv/gstdvdemux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dv/gstdvdemux.c b/ext/dv/gstdvdemux.c
index 8c3ac9bb4..bfdabf8a2 100644
--- a/ext/dv/gstdvdemux.c
+++ b/ext/dv/gstdvdemux.c
@@ -1183,6 +1183,7 @@ gst_dvdemux_demux_audio (GstDVDemux * dvdemux, GstBuffer * buffer,
gst_audio_info_set_format (&info, GST_AUDIO_FORMAT_S16LE,
frequency, channels, NULL);
caps = gst_audio_info_to_caps (&info);
+ gst_pad_push_event (dvdemux->audiosrcpad, gst_event_new_stream_start ());
gst_pad_set_caps (dvdemux->audiosrcpad, caps);
gst_caps_unref (caps);
}
@@ -1272,6 +1273,7 @@ gst_dvdemux_demux_video (GstDVDemux * dvdemux, GstBuffer * buffer,
"framerate", GST_TYPE_FRACTION, dvdemux->framerate_numerator,
dvdemux->framerate_denominator,
"pixel-aspect-ratio", GST_TYPE_FRACTION, par_x, par_y, NULL);
+ gst_pad_push_event (dvdemux->videosrcpad, gst_event_new_stream_start ());
gst_pad_set_caps (dvdemux->videosrcpad, caps);
gst_caps_unref (caps);
}