mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-11 02:24:13 +00:00
sys/ximage/ximagesink.c: Checking if the pad is negotiating before trying renegotiation.
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.
This commit is contained in:
parent
a87e0639fe
commit
f2d0b3c34e
2 changed files with 7 additions and 1 deletions
|
@ -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):
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue