summaryrefslogtreecommitdiff
path: root/sys/osxvideo/osxvideosink.m
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.decina@collabora.co.uk>2012-05-24 13:08:13 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-05-24 14:36:09 +0200
commitdc8de54cce1da152be7a190be7df89a0c2d84a52 (patch)
tree6f5ca7abaaeabfe4596b4269c14a1b1cb3315685 /sys/osxvideo/osxvideosink.m
parentfdf5fd9f16f2afa9d445ebb8ade31845e83396b9 (diff)
osxvideosink: fix indentation
Diffstat (limited to 'sys/osxvideo/osxvideosink.m')
-rw-r--r--sys/osxvideo/osxvideosink.m26
1 files changed, 13 insertions, 13 deletions
diff --git a/sys/osxvideo/osxvideosink.m b/sys/osxvideo/osxvideosink.m
index fa7a65c88..e64d40dd6 100644
--- a/sys/osxvideo/osxvideosink.m
+++ b/sys/osxvideo/osxvideosink.m
@@ -156,25 +156,25 @@ gst_osx_video_sink_run_cocoa_loop (GstOSXVideoSink * osxvideosink )
*/
if ([[NSRunLoop mainRunLoop] currentMode] == nil) {
#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
- * make it believe our dedicated thread is the main thread
- */
- Method origIsMainThread = class_getClassMethod([NSThread class],
- NSSelectorFromString(@"isMainThread"));
- Method ourIsMainThread = class_getClassMethod([GstOSXVideoSinkObject class],
- NSSelectorFromString(@"isMainThread"));
+ /* override [NSThread isMainThread] with our own implementation so that we can
+ * make it believe our dedicated thread is the main thread
+ */
+ Method origIsMainThread = class_getClassMethod([NSThread class],
+ NSSelectorFromString(@"isMainThread"));
+ Method ourIsMainThread = class_getClassMethod([GstOSXVideoSinkObject class],
+ NSSelectorFromString(@"isMainThread"));
- method_exchangeImplementations(origIsMainThread, ourIsMainThread);
+ method_exchangeImplementations(origIsMainThread, ourIsMainThread);
- osxvideosink->ns_app_thread = g_thread_new ("GstNSAppThread",
- ns_app_loop_thread, NULL);
+ osxvideosink->ns_app_thread = g_thread_new ("GstNSAppThread",
+ ns_app_loop_thread, NULL);
#else
/* assume that there is a GMainLoop and iterate the main runloop from there
*/
- osxvideosink->cocoa_timeout = g_timeout_add (10,
- (GSourceFunc) run_ns_app_loop, NULL);
+ osxvideosink->cocoa_timeout = g_timeout_add (10,
+ (GSourceFunc) run_ns_app_loop, NULL);
#endif
}
}