mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
gtk: Do not forget to release OBJECT_LOCK on error path
https://bugzilla.gnome.org/show_bug.cgi?id=755542
This commit is contained in:
parent
01057609f1
commit
bdcb8208eb
1 changed files with 6 additions and 4 deletions
|
@ -378,7 +378,8 @@ gst_gtk_base_sink_change_state (GstElement * element, GstStateChange transition)
|
|||
GST_OBJECT_UNLOCK (gtk_sink);
|
||||
|
||||
if (window)
|
||||
gst_gtk_invoke_on_main ((GThreadFunc) gst_gtk_widget_show_all_and_unref, window);
|
||||
gst_gtk_invoke_on_main ((GThreadFunc) gst_gtk_widget_show_all_and_unref,
|
||||
window);
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -437,9 +438,10 @@ gst_gtk_base_sink_set_caps (GstBaseSink * bsink, GstCaps * caps)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (!gtk_gst_base_widget_set_format (gtk_sink->widget, >k_sink->v_info))
|
||||
if (!gtk_gst_base_widget_set_format (gtk_sink->widget, >k_sink->v_info)) {
|
||||
GST_OBJECT_UNLOCK (gtk_sink);
|
||||
return FALSE;
|
||||
|
||||
}
|
||||
GST_OBJECT_UNLOCK (gtk_sink);
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue