summaryrefslogtreecommitdiff
path: root/gst/mpegpsmux
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2013-07-10 12:28:38 +0200
committerSebastian Dröge <slomo@circular-chaos.org>2013-07-10 12:28:38 +0200
commitf83e9405ded5b062841f5b6d83864d4221304866 (patch)
tree10a20e0dddc3660ae474888ded84254eecee0001 /gst/mpegpsmux
parent8ca1751f00455c4965e67c447aa3b0a4754dbc88 (diff)
downloadgstreamer-plugins-bad-f83e9405ded5b062841f5b6d83864d4221304866.tar.gz
mpegpsmux: Send stream-start event before any data
Diffstat (limited to 'gst/mpegpsmux')
-rw-r--r--gst/mpegpsmux/mpegpsmux.c5
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);