diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2013-07-10 12:28:38 +0200 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2013-07-10 12:28:38 +0200 |
commit | f83e9405ded5b062841f5b6d83864d4221304866 (patch) | |
tree | 10a20e0dddc3660ae474888ded84254eecee0001 /gst/mpegpsmux | |
parent | 8ca1751f00455c4965e67c447aa3b0a4754dbc88 (diff) | |
download | gstreamer-plugins-bad-f83e9405ded5b062841f5b6d83864d4221304866.tar.gz |
mpegpsmux: Send stream-start event before any data
Diffstat (limited to 'gst/mpegpsmux')
-rw-r--r-- | gst/mpegpsmux/mpegpsmux.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/mpegpsmux/mpegpsmux.c b/gst/mpegpsmux/mpegpsmux.c index 82bf10c1c..fa11c4206 100644 --- a/gst/mpegpsmux/mpegpsmux.c +++ b/gst/mpegpsmux/mpegpsmux.c @@ -702,6 +702,11 @@ mpegpsdemux_prepare_srcpad (MpegPsMux * mux) GValue val = { 0, }; GList *headers, *l; GstCaps *caps; + gchar s_id[32]; + + /* stream-start (FIXME: create id based on input ids) */ + g_snprintf (s_id, sizeof (s_id), "mpegpsmux-%08x", g_random_int ()); + gst_pad_push_event (mux->srcpad, gst_event_new_stream_start (s_id)); caps = gst_caps_new_simple ("video/mpeg", "mpegversion", G_TYPE_INT, 2, "systemstream", G_TYPE_BOOLEAN, TRUE, NULL); |