rem: vw->priv->source_width = width; vw->priv->source_height = height; gtk_widget_queue_resize (GTK_WIDGET (vw));
add: if (vw->priv->source_width != width || vw->priv->source_height != height) { vw->priv->source_width = width; vw->priv->source_height = height; gtk_widget_queue_resize (GTK_WIDGET (vw)); }
context: gst_video_widget_set_source_size (GstVideoWidget * vw, gint width,				  gint height){  g_return_val_if_fail (vw != NULL, FALSE);  g_return_val_if_fail (GST_IS_VIDEO_WIDGET (vw), FALSE);    vw->priv->source_width = width;  vw->priv->source_height = height;  gtk_widget_queue_resize (GTK_WIDGET (vw));  return TRUE;}