g_signal_emit (G_OBJECT (playbin), gst_play_bin_signals[signal], 0, NULL);
}
+done:
+ gst_caps_unref (caps);
return;
/* ERRORS */
{
GST_ERROR_OBJECT (playbin, "unknown type %s for pad %s:%s",
name, GST_DEBUG_PAD_NAME (pad));
- return;
+ goto done;
}
no_selector:
{
GST_ELEMENT_ERROR (playbin, CORE, MISSING_PLUGIN,
(_("Missing element '%s' - check your GStreamer installation."),
"input-selector"), (NULL));
- return;
+ goto done;
}
link_failed:
{
"failed to link pad %s:%s to selector, reason %d",
GST_DEBUG_PAD_NAME (pad), res);
GST_SOURCE_GROUP_UNLOCK (group);
- return;
+ goto done;
}
}