sys/ximage/ximagesink.c: For completeness, XSync in the destroy function as xvimage...
authorJan Schmidt <thaytan@mad.scientist.com>
Wed, 22 Sep 2004 15:32:39 +0000 (15:32 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Wed, 22 Sep 2004 15:32:39 +0000 (15:32 +0000)
Original commit message from CVS:
* sys/ximage/ximagesink.c: (gst_ximagesink_ximage_destroy):
For completeness, XSync in the destroy function as xvimage does.

ChangeLog
sys/ximage/ximagesink.c

index 06c49d0..d15070b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2004-09-23  Jan Schmidt  <thaytan@mad.scientist.com>
 
+       * sys/ximage/ximagesink.c: (gst_ximagesink_ximage_destroy):
+         For completeness, XSync in the destroy function as xvimage does.
+
+2004-09-23  Jan Schmidt  <thaytan@mad.scientist.com>
+
        * ext/gdk_pixbuf/pixbufscale.c: (gst_pixbufscale_getcaps):
           Correct caps negotiation
        * gst/volume/gstvolume.c: (volume_chain_float),
index 8833ac3..0bde940 100644 (file)
@@ -284,6 +284,7 @@ gst_ximagesink_ximage_destroy (GstXImageSink * ximagesink, GstXImage * ximage)
   if (ximagesink->xcontext->use_xshm) {
     if (ximage->SHMInfo.shmaddr != ((void *) -1)) {
       XShmDetach (ximagesink->xcontext->disp, &ximage->SHMInfo);
+      XSync (xcontext->disp, 0);
       shmdt (ximage->SHMInfo.shmaddr);
     }
     if (ximage->SHMInfo.shmid > 0)