osxvideosink: fix indentation

This commit is contained in:
Alessandro Decina 2012-05-24 13:08:13 +02:00 committed by Sebastian Dröge
parent fdf5fd9f16
commit dc8de54cce

View file

@ -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
} }
} }