mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-04 13:45:52 +00:00
basesink: Post a STREAM_START message when we see the event
This commit is contained in:
parent
94bd61b72d
commit
e1f7c08f65
|
@ -2010,8 +2010,8 @@ gst_base_sink_wait_clock (GstBaseSink * sink, GstClockTime time,
|
||||||
/* FIXME: Casting to GstClockEntry only works because the types
|
/* FIXME: Casting to GstClockEntry only works because the types
|
||||||
* are the same */
|
* are the same */
|
||||||
if (G_LIKELY (sink->priv->cached_clock_id != NULL
|
if (G_LIKELY (sink->priv->cached_clock_id != NULL
|
||||||
&& GST_CLOCK_ENTRY_CLOCK ((GstClockEntry *) sink->priv->
|
&& GST_CLOCK_ENTRY_CLOCK ((GstClockEntry *) sink->
|
||||||
cached_clock_id) == clock)) {
|
priv->cached_clock_id) == clock)) {
|
||||||
if (!gst_clock_single_shot_id_reinit (clock, sink->priv->cached_clock_id,
|
if (!gst_clock_single_shot_id_reinit (clock, sink->priv->cached_clock_id,
|
||||||
time)) {
|
time)) {
|
||||||
gst_clock_id_unref (sink->priv->cached_clock_id);
|
gst_clock_id_unref (sink->priv->cached_clock_id);
|
||||||
|
@ -2918,6 +2918,19 @@ gst_base_sink_default_event (GstBaseSink * basesink, GstEvent * event)
|
||||||
gst_element_post_message (GST_ELEMENT_CAST (basesink), message);
|
gst_element_post_message (GST_ELEMENT_CAST (basesink), message);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case GST_EVENT_STREAM_START:
|
||||||
|
{
|
||||||
|
GstMessage *message;
|
||||||
|
guint32 seqnum;
|
||||||
|
|
||||||
|
seqnum = gst_event_get_seqnum (event);
|
||||||
|
GST_DEBUG_OBJECT (basesink, "Now posting STREAM_START (seqnum:%d)",
|
||||||
|
seqnum);
|
||||||
|
message = gst_message_new_stream_start (GST_OBJECT_CAST (basesink));
|
||||||
|
gst_message_set_seqnum (message, seqnum);
|
||||||
|
gst_element_post_message (GST_ELEMENT_CAST (basesink), message);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case GST_EVENT_CAPS:
|
case GST_EVENT_CAPS:
|
||||||
{
|
{
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
Loading…
Reference in a new issue