sys/ximage/ximagesink.c: For completeness, XSync in the destroy function as xvimage does.

Original commit message from CVS:
* sys/ximage/ximagesink.c: (gst_ximagesink_ximage_destroy):
For completeness, XSync in the destroy function as xvimage does.
This commit is contained in:
Jan Schmidt 2004-09-22 15:32:39 +00:00
parent 771b0248e7
commit fbfef0cba4
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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):

View 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)