summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Smith <msmith@songbirdnest.com>2009-10-23 18:31:14 -0700
committerMichael Smith <msmith@songbirdnest.com>2009-10-23 18:31:14 -0700
commit8991a713a7d3862faa8c891be1d8cd1e9a32bc49 (patch)
tree67dbd9699ccde0166e3b572b8c43a9668caf5e8e
parent2da535f56fb239ef2c42871ee9b1a43f35ff341d (diff)
osxvideosink: Create the video NSView in READY->PAUSED rather than NULL->READY
-rw-r--r--sys/osxvideo/osxvideosink.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/osxvideo/osxvideosink.m b/sys/osxvideo/osxvideosink.m
index c807d1590..6ef548368 100644
--- a/sys/osxvideo/osxvideosink.m
+++ b/sys/osxvideo/osxvideosink.m
@@ -204,6 +204,8 @@ gst_osx_video_sink_change_state (GstElement * element,
switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:
+ break;
+ case GST_STATE_CHANGE_READY_TO_PAUSED:
/* Creating our window and our image */
GST_VIDEO_SINK_WIDTH (osxvideosink) = 320;
GST_VIDEO_SINK_HEIGHT (osxvideosink) = 240;
@@ -222,9 +224,9 @@ gst_osx_video_sink_change_state (GstElement * element,
case GST_STATE_CHANGE_PAUSED_TO_READY:
GST_VIDEO_SINK_WIDTH (osxvideosink) = 0;
GST_VIDEO_SINK_HEIGHT (osxvideosink) = 0;
+ gst_osx_video_sink_osxwindow_destroy (osxvideosink);
break;
case GST_STATE_CHANGE_READY_TO_NULL:
- gst_osx_video_sink_osxwindow_destroy (osxvideosink);
break;
default:
break;