summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2015-09-24 15:52:40 +0200
committerThibault Saunier <tsaunier@gnome.org>2015-09-24 16:50:38 +0200
commit4807201b042fae599cc6a75454a1a0ca6585f240 (patch)
tree802aef326961c645e261740ff1d06cb6da149115
parentbdcb8208eb0bcca3a426082359e6969472db3166 (diff)
downloadgstreamer-plugins-bad-4807201b042fae599cc6a75454a1a0ca6585f240.tar.gz
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
-rw-r--r--ext/gtk/gtkgstbasewidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gtk/gtkgstbasewidget.c b/ext/gtk/gtkgstbasewidget.c
index 390ac246b..aa02c7e2b 100644
--- a/ext/gtk/gtkgstbasewidget.c
+++ b/ext/gtk/gtkgstbasewidget.c
@@ -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;
}