summaryrefslogtreecommitdiffstats
path: root/sys/osxvideo
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-02-10 08:43:59 +0100
committerEdward Hervey <bilboed@bilboed.com>2009-02-10 08:43:59 +0100
commit309c651286946e6ddb24f8d8fa160a423ae6f4f3 (patch)
treec3d776a6574a4ff1184d8e012f4e53fdbb9fff1d /sys/osxvideo
parente5644f0ab390514d5558185a6d732820c35fc98a (diff)
osxvideosink: Fix build. Fixes #571038
Diffstat (limited to 'sys/osxvideo')
-rw-r--r--sys/osxvideo/osxvideosink.m15
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/osxvideo/osxvideosink.m b/sys/osxvideo/osxvideosink.m
index aee498cc..c807d159 100644
--- a/sys/osxvideo/osxvideosink.m
+++ b/sys/osxvideo/osxvideosink.m
@@ -83,7 +83,6 @@ gst_osx_video_sink_osxwindow_new (GstOSXVideoSink * osxvideosink, gint width,
GstOSXWindow *osxwindow = NULL;
GstStructure *s;
GstMessage *msg;
- guint8 *viewdata;
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
g_return_val_if_fail (GST_IS_OSX_VIDEO_SINK (osxvideosink), NULL);
@@ -120,8 +119,10 @@ gst_osx_video_sink_osxwindow_new (GstOSXVideoSink * osxvideosink, gint width,
static void
gst_osx_video_sink_osxwindow_destroy (GstOSXVideoSink * osxvideosink)
{
+ NSAutoreleasePool *pool;
+
g_return_if_fail (GST_IS_OSX_VIDEO_SINK (osxvideosink));
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+ pool = [[NSAutoreleasePool alloc] init];
if (osxvideosink->osxwindow) {
[osxvideosink->osxwindow->gstview release];
@@ -211,17 +212,13 @@ gst_osx_video_sink_change_state (GstElement * element,
GST_VIDEO_SINK_WIDTH (osxvideosink),
GST_VIDEO_SINK_HEIGHT (osxvideosink));
break;
- case GST_STATE_CHANGE_READY_TO_PAUSED:
- break;
- case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
+ default:
break;
}
ret = (GST_ELEMENT_CLASS (parent_class))->change_state (element, transition);
switch (transition) {
- case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
- break;
case GST_STATE_CHANGE_PAUSED_TO_READY:
GST_VIDEO_SINK_WIDTH (osxvideosink) = 0;
GST_VIDEO_SINK_HEIGHT (osxvideosink) = 0;
@@ -229,6 +226,8 @@ gst_osx_video_sink_change_state (GstElement * element,
case GST_STATE_CHANGE_READY_TO_NULL:
gst_osx_video_sink_osxwindow_destroy (osxvideosink);
break;
+ default:
+ break;
}
return ret;
@@ -242,7 +241,7 @@ gst_osx_video_sink_show_frame (GstBaseSink * bsink, GstBuffer * buf)
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
osxvideosink = GST_OSX_VIDEO_SINK (bsink);
- viewdata = [osxvideosink->osxwindow->gstview getTextureBuffer];
+ viewdata = (guint8 *) [osxvideosink->osxwindow->gstview getTextureBuffer];
GST_DEBUG ("show_frame");
memcpy (viewdata, GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf));