mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
gl/cocoa: Don't init and clear static GMutex / GCond
We would potentially use it from the main loop later in gst_gl_window_cocoa_init_nsapp() if it timed out before.
This commit is contained in:
parent
75cc750efc
commit
1b2de14000
1 changed files with 0 additions and 6 deletions
|
@ -166,9 +166,6 @@ gst_gl_context_cocoa_class_init (GstGLContextCocoaClass * klass)
|
|||
} else {
|
||||
/* Main loop running on the default main context but it
|
||||
* is not running in this thread */
|
||||
g_mutex_init (&nsapp_lock);
|
||||
g_cond_init (&nsapp_cond);
|
||||
|
||||
g_mutex_lock (&nsapp_lock);
|
||||
g_idle_add_full (G_PRIORITY_HIGH, gst_gl_window_cocoa_init_nsapp, NULL, NULL);
|
||||
end_time = g_get_monotonic_time () + 500 * 1000;
|
||||
|
@ -178,9 +175,6 @@ gst_gl_context_cocoa_class_init (GstGLContextCocoaClass * klass)
|
|||
if (!is_loop_running) {
|
||||
GST_WARNING ("no mainloop running");
|
||||
}
|
||||
|
||||
g_cond_clear (&nsapp_cond);
|
||||
g_mutex_clear (&nsapp_lock);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue