mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 17:18:15 +00:00
osxvideosink: Create the video NSView in READY->PAUSED rather than NULL->READY
This commit is contained in:
parent
2da535f56f
commit
8991a713a7
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue