mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
basesink: Handle the new sink-message event
This commit is contained in:
parent
fee1ad3a0a
commit
cb28889b11
1 changed files with 8 additions and 0 deletions
|
@ -2771,6 +2771,14 @@ again:
|
||||||
gst_base_sink_configure_segment (basesink, pad, event,
|
gst_base_sink_configure_segment (basesink, pad, event,
|
||||||
&basesink->segment);
|
&basesink->segment);
|
||||||
break;
|
break;
|
||||||
|
case GST_EVENT_SINK_MESSAGE:{
|
||||||
|
GstMessage *msg = NULL;
|
||||||
|
|
||||||
|
gst_event_parse_sink_message (event, &msg);
|
||||||
|
|
||||||
|
if (msg)
|
||||||
|
gst_element_post_message (GST_ELEMENT_CAST (basesink), msg);
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue