mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
osxvideosink: fix indentation
This commit is contained in:
parent
fdf5fd9f16
commit
dc8de54cce
1 changed files with 13 additions and 13 deletions
|
@ -156,25 +156,25 @@ gst_osx_video_sink_run_cocoa_loop (GstOSXVideoSink * osxvideosink )
|
||||||
*/
|
*/
|
||||||
if ([[NSRunLoop mainRunLoop] currentMode] == nil) {
|
if ([[NSRunLoop mainRunLoop] currentMode] == nil) {
|
||||||
#ifdef RUN_NS_APP_THREAD
|
#ifdef RUN_NS_APP_THREAD
|
||||||
/* run the main runloop in a separate thread */
|
/* run the main runloop in a separate thread */
|
||||||
|
|
||||||
/* override [NSThread isMainThread] with our own implementation so that we can
|
/* override [NSThread isMainThread] with our own implementation so that we can
|
||||||
* make it believe our dedicated thread is the main thread
|
* make it believe our dedicated thread is the main thread
|
||||||
*/
|
*/
|
||||||
Method origIsMainThread = class_getClassMethod([NSThread class],
|
Method origIsMainThread = class_getClassMethod([NSThread class],
|
||||||
NSSelectorFromString(@"isMainThread"));
|
NSSelectorFromString(@"isMainThread"));
|
||||||
Method ourIsMainThread = class_getClassMethod([GstOSXVideoSinkObject class],
|
Method ourIsMainThread = class_getClassMethod([GstOSXVideoSinkObject class],
|
||||||
NSSelectorFromString(@"isMainThread"));
|
NSSelectorFromString(@"isMainThread"));
|
||||||
|
|
||||||
method_exchangeImplementations(origIsMainThread, ourIsMainThread);
|
method_exchangeImplementations(origIsMainThread, ourIsMainThread);
|
||||||
|
|
||||||
osxvideosink->ns_app_thread = g_thread_new ("GstNSAppThread",
|
osxvideosink->ns_app_thread = g_thread_new ("GstNSAppThread",
|
||||||
ns_app_loop_thread, NULL);
|
ns_app_loop_thread, NULL);
|
||||||
#else
|
#else
|
||||||
/* assume that there is a GMainLoop and iterate the main runloop from there
|
/* assume that there is a GMainLoop and iterate the main runloop from there
|
||||||
*/
|
*/
|
||||||
osxvideosink->cocoa_timeout = g_timeout_add (10,
|
osxvideosink->cocoa_timeout = g_timeout_add (10,
|
||||||
(GSourceFunc) run_ns_app_loop, NULL);
|
(GSourceFunc) run_ns_app_loop, NULL);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue