mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
basesink: small cleanups
This commit is contained in:
parent
f62c3922c2
commit
e1b64d971e
1 changed files with 13 additions and 13 deletions
|
@ -2138,22 +2138,22 @@ gst_base_sink_do_preroll (GstBaseSink * sink, GstMiniObject * obj)
|
|||
buf = GST_BUFFER_CAST (obj);
|
||||
/* For buffer lists do not set last buffer for now */
|
||||
gst_base_sink_set_last_buffer (sink, buf);
|
||||
} else {
|
||||
goto no_call_preroll;
|
||||
} else
|
||||
buf = NULL;
|
||||
|
||||
if (buf) {
|
||||
GST_DEBUG_OBJECT (sink, "preroll buffer %" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)));
|
||||
|
||||
bclass = GST_BASE_SINK_GET_CLASS (sink);
|
||||
if (bclass->preroll)
|
||||
if ((ret = bclass->preroll (sink, buf)) != GST_FLOW_OK)
|
||||
goto preroll_canceled;
|
||||
|
||||
sink->priv->call_preroll = FALSE;
|
||||
}
|
||||
|
||||
GST_DEBUG_OBJECT (sink, "preroll buffer %" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)));
|
||||
|
||||
bclass = GST_BASE_SINK_GET_CLASS (sink);
|
||||
if (bclass->preroll)
|
||||
if ((ret = bclass->preroll (sink, buf)) != GST_FLOW_OK)
|
||||
goto preroll_canceled;
|
||||
|
||||
sink->priv->call_preroll = FALSE;
|
||||
}
|
||||
|
||||
no_call_preroll:
|
||||
/* commit state */
|
||||
if (G_LIKELY (sink->playing_async)) {
|
||||
if (G_UNLIKELY (!gst_base_sink_commit_state (sink)))
|
||||
|
|
Loading…
Reference in a new issue