diff options
author | Edward Hervey <edward.hervey@collabora.co.uk> | 2012-07-09 20:08:15 +0200 |
---|---|---|
committer | Edward Hervey <edward.hervey@collabora.co.uk> | 2012-07-09 20:31:45 +0200 |
commit | 67b77667bb7f2931d59bd3489e4e0350b96e9930 (patch) | |
tree | af7242ec275a473d8109acd9f4e8719209948828 /gst/gstmessage.c | |
parent | d14f523d4a29ab9885deeac92ff4d3fb28232100 (diff) |
gstmessage: New GST_MESSAGE_STREAM_START
message counterpart to the GST_EVENT_STREAM_START event
Diffstat (limited to 'gst/gstmessage.c')
-rw-r--r-- | gst/gstmessage.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gst/gstmessage.c b/gst/gstmessage.c index 108a023a9..106771e5b 100644 --- a/gst/gstmessage.c +++ b/gst/gstmessage.c @@ -105,6 +105,7 @@ static GstMessageQuarks message_quarks[] = { {GST_MESSAGE_QOS, "qos", 0}, {GST_MESSAGE_PROGRESS, "progress", 0}, {GST_MESSAGE_TOC, "toc", 0}, + {GST_MESSAGE_STREAM_START, "stream-start", 0}, {0, NULL, 0} }; @@ -2274,3 +2275,25 @@ gst_message_parse_reset_time (GstMessage * message, GstClockTime * running_time) g_value_get_uint64 (gst_structure_id_get_value (structure, GST_QUARK (RUNNING_TIME))); } + +/** + * gst_message_new_stream_start: + * @src: (transfer none): The object originating the message. + * + * Create a new stream_start message. This message is generated and posted in + * the sink elements of a GstBin. The bin will only forward the STREAM_START + * message to the application if all sinks have posted an STREAM_START message. + * + * Returns: (transfer full): The new stream_start message. + * + * MT safe. + */ +GstMessage * +gst_message_new_stream_start (GstObject * src) +{ + GstMessage *message; + + message = gst_message_new_custom (GST_MESSAGE_STREAM_START, src, NULL); + + return message; +} |