mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-14 12:04:11 +00:00
gtk: When setting format check if pending format changed
In case the format changed fast and the pending format is different than the currently set but the currently set is equal to the pending one we could end up having mismatch between the finally set format and the data stream format. https://bugzilla.gnome.org/show_bug.cgi?id=755542
This commit is contained in:
parent
bdcb8208eb
commit
4807201b04
1 changed files with 1 additions and 1 deletions
|
@ -454,7 +454,7 @@ gtk_gst_base_widget_set_format (GtkGstBaseWidget * widget,
|
|||
{
|
||||
GTK_GST_BASE_WIDGET_LOCK (widget);
|
||||
|
||||
if (gst_video_info_is_equal (&widget->v_info, v_info)) {
|
||||
if (gst_video_info_is_equal (&widget->pending_v_info, v_info)) {
|
||||
GTK_GST_BASE_WIDGET_UNLOCK (widget);
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue