mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
osxvideosink: start the loop before calling [gstview haveSuperview]
...as haveSuperview requires the mainloop to be running
This commit is contained in:
parent
dc8de54cce
commit
57e43aeb21
1 changed files with 1 additions and 1 deletions
|
@ -227,6 +227,7 @@ gst_osx_video_sink_osxwindow_create (GstOSXVideoSink * osxvideosink, gint width,
|
||||||
|
|
||||||
GST_INFO_OBJECT (osxvideosink, "'have-ns-view' message sent");
|
GST_INFO_OBJECT (osxvideosink, "'have-ns-view' message sent");
|
||||||
|
|
||||||
|
gst_osx_video_sink_run_cocoa_loop (osxvideosink);
|
||||||
/* check if have-ns-view was handled and osxwindow->gstview was added to a
|
/* check if have-ns-view was handled and osxwindow->gstview was added to a
|
||||||
* superview
|
* superview
|
||||||
*/
|
*/
|
||||||
|
@ -254,7 +255,6 @@ gst_osx_video_sink_osxwindow_create (GstOSXVideoSink * osxvideosink, gint width,
|
||||||
*/
|
*/
|
||||||
GST_INFO_OBJECT (osxvideosink, "no superview");
|
GST_INFO_OBJECT (osxvideosink, "no superview");
|
||||||
} else {
|
} else {
|
||||||
gst_osx_video_sink_run_cocoa_loop (osxvideosink);
|
|
||||||
gst_osx_video_sink_call_from_main_thread(osxvideosink->osxvideosinkobject,
|
gst_osx_video_sink_call_from_main_thread(osxvideosink->osxvideosinkobject,
|
||||||
@selector(createInternalWindow), nil, YES);
|
@selector(createInternalWindow), nil, YES);
|
||||||
GST_INFO_OBJECT (osxvideosink, "No superview, creating an internal window.");
|
GST_INFO_OBJECT (osxvideosink, "No superview, creating an internal window.");
|
||||||
|
|
Loading…
Reference in a new issue