sys/ximage/ximagesink.c: Checking if the pad is negotiating before trying renegotiation.
authorJulien Moutte <julien@moutte.net>
Tue, 17 Feb 2004 22:55:52 +0000 (22:55 +0000)
committerJulien Moutte <julien@moutte.net>
Tue, 17 Feb 2004 22:55:52 +0000 (22:55 +0000)
Original commit message from CVS:
2004-02-17  Julien MOUTTE  <julien@moutte.net>

* sys/ximage/ximagesink.c: (gst_ximagesink_expose): Checking if the
pad is negotiating before trying renegotiation.

ChangeLog
sys/ximage/ximagesink.c

index 004227e..e5d212b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-17  Julien MOUTTE  <julien@moutte.net>
+
+       * sys/ximage/ximagesink.c: (gst_ximagesink_expose): Checking if the
+       pad is negotiating before trying renegotiation.
+
 2004-02-17  Thomas Vander Stichele  <thomas at apestaart dot org>
 
        * ext/gdk_pixbuf/gstgdkpixbuf.c: (gst_gdk_pixbuf_type_find):
index 4f61ae6..d5e9773 100644 (file)
@@ -1253,7 +1253,8 @@ gst_ximagesink_expose (GstXOverlay *overlay)
   if (attr.width == 1 && attr.height == 1)
     return;
   
-  if (gst_pad_is_negotiated (GST_VIDEOSINK_PAD (ximagesink)))
+  if (gst_pad_is_negotiated (GST_VIDEOSINK_PAD (ximagesink)) &&
+      !GST_PAD_IS_NEGOTIATING (GST_VIDEOSINK_PAD (ximagesink)))
     gst_ximagesink_renegotiate_size (ximagesink, attr.width, attr.height);
   
   gst_ximagesink_xwindow_clear (ximagesink, ximagesink->xwindow);