basesink: small cleanups

This commit is contained in:
Wim Taymans 2011-12-03 07:01:45 +01:00
parent f62c3922c2
commit e1b64d971e

View file

@ -2138,10 +2138,10 @@ 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)));
@ -2152,8 +2152,8 @@ gst_base_sink_do_preroll (GstBaseSink * sink, GstMiniObject * obj)
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)))