+2004-09-22 Julien MOUTTE <julien@moutte.net>
+
+ * sys/ximage/ximagesink.c: (gst_ximagesink_ximage_destroy):
+ * sys/xvimage/xvimagesink.c: (gst_xvimagesink_check_xshm_calls): Fix
+ mistakes from thaytan's patches.
+
2004-09-23 Jan Schmidt <thaytan@mad.scientist.com>
* sys/ximage/ximagesink.c: (gst_ximagesink_ximage_destroy):
if (ximagesink->xcontext->use_xshm) {
if (ximage->SHMInfo.shmaddr != ((void *) -1)) {
XShmDetach (ximagesink->xcontext->disp, &ximage->SHMInfo);
- XSync (xcontext->disp, 0);
+ XSync (ximagesink->xcontext->disp, 0);
shmdt (ximage->SHMInfo.shmaddr);
}
if (ximage->SHMInfo.shmid > 0)
#endif /* HAVE_XSHM */
{
if (ximage->ximage) {
- if (ximage->ximage->data) {
- g_free (ximage->ximage->data);
- }
XDestroyImage (ximage->ximage);
}
}
shmctl (xvimage->SHMInfo.shmid, IPC_RMID, 0);
/* To be sure, reset the SHMInfo entry */
- ximage->SHMInfo.shmaddr = ((void *) -1);
+ xvimage->SHMInfo.shmaddr = ((void *) -1);
/* store whether we succeeded in result and reset error_caught */
result = !error_caught;