From bd7b6fc51c1ba10d77780cc5084d830448592b0e Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 27 Feb 2007 11:30:19 +0000 Subject: sys/osxvideo/: Disable the cocoa event loop since it's a huge memory leak. Should only matter if the sink isn't used ... Original commit message from CVS: * sys/osxvideo/cocoawindow.h: * sys/osxvideo/cocoawindow.m: * sys/osxvideo/osxvideosink.h: * sys/osxvideo/osxvideosink.m: Disable the cocoa event loop since it's a huge memory leak. Should only matter if the sink isn't used within an NSApp (which has already got a coca event loop). Remove all unused code. --- sys/osxvideo/osxvideosink.h | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'sys/osxvideo/osxvideosink.h') diff --git a/sys/osxvideo/osxvideosink.h b/sys/osxvideo/osxvideosink.h index b2577512..f03d1bde 100644 --- a/sys/osxvideo/osxvideosink.h +++ b/sys/osxvideo/osxvideosink.h @@ -52,24 +52,6 @@ typedef struct _GstOSXVideoSinkClass GstOSXVideoSinkClass; #define GST_TYPE_OSXVIDEOBUFFER (gst_osxvideobuffer_get_type()) -#define GST_IS_OSXVIDEOBUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_OSXVIDEOBUFFER)) -#define GST_OSXVIDEOBUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_OSXVIDEOBUFFER, GstOSXVideoBuffer)) - -typedef struct _GstOSXVideoBuffer GstOSXVideoBuffer; - -struct _GstOSXVideoBuffer { - GstBuffer buffer; /* We extend GstBuffer */ - - CVOpenGLTextureRef texture; - - gint width; - gint height; - - gboolean locked; - - GstOSXVideoSink *osxvideosink; -}; - /* OSXWindow stuff */ struct _GstOSXWindow { gint width, height; @@ -82,9 +64,6 @@ struct _GstOSXVideoSink { /* Our element stuff */ GstVideoSink videosink; - GMutex *pool_lock; - GSList *buffer_pool; - GstOSXWindow *osxwindow; gint fps_n; -- cgit v1.2.1