sys/: Fix mistakes from thaytan's patches.
authorJulien Moutte <julien@moutte.net>
Wed, 22 Sep 2004 15:59:56 +0000 (15:59 +0000)
committerJulien Moutte <julien@moutte.net>
Wed, 22 Sep 2004 15:59:56 +0000 (15:59 +0000)
Original commit message from CVS:
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.

ChangeLog
sys/ximage/ximagesink.c
sys/xvimage/xvimagesink.c

index d15070ba6be8913a96c9e475bd30b570a71e123f..84d0be9aae3020ec72340810d0482ec9ca86c189 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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):
index 0bde940718c93b3f47c45c00b97c5dd75e5f2e31..1766be1f86e77f8a9790b2fbfeeee2d80123d872 100644 (file)
@@ -284,7 +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);
+      XSync (ximagesink->xcontext->disp, 0);
       shmdt (ximage->SHMInfo.shmaddr);
     }
     if (ximage->SHMInfo.shmid > 0)
@@ -296,9 +296,6 @@ gst_ximagesink_ximage_destroy (GstXImageSink * ximagesink, GstXImage * ximage)
 #endif /* HAVE_XSHM */
   {
     if (ximage->ximage) {
-      if (ximage->ximage->data) {
-        g_free (ximage->ximage->data);
-      }
       XDestroyImage (ximage->ximage);
     }
   }
index 3790872631375b08d0ff556d932ba3f1a77142d3..7dd72331eb6f45165623213ccf04fa2586b75165 100644 (file)
@@ -169,7 +169,7 @@ gst_xvimagesink_check_xshm_calls (GstXContext * xcontext)
   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;