If was left as dead code.
if (!result)
goto activate_failed;
- /* but if starting the thread fails, set it back */
- if (!result)
- basesink->pad_mode = GST_ACTIVATE_NONE;
} else {
if (G_UNLIKELY (basesink->pad_mode != GST_ACTIVATE_PULL)) {
g_warning ("Internal GStreamer activation error!!!");
/* ERRORS */
activate_failed:
{
+ /* reset, as starting the thread failed */
+ basesink->pad_mode = GST_ACTIVATE_NONE;
+
GST_ERROR_OBJECT (basesink, "subclass failed to activate in pull mode");
return FALSE;
}