Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gst-plugins-good
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
34a5b936
Commit
34a5b936
authored
Jul 09, 2013
by
Andoni Morales Alastruey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
osxvideosink: default to the main in case we are not setup yet
parent
0e321b87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
sys/osxvideo/osxvideosink.m
sys/osxvideo/osxvideosink.m
+8
-1
No files found.
sys/osxvideo/osxvideosink.m
View file @
34a5b936
...
...
@@ -90,9 +90,16 @@ gst_osx_video_sink_call_from_main_thread(GstOSXVideoSink *osxvideosink,
NSObject
*
object
,
SEL
function
,
NSObject
*
data
,
BOOL
waitUntilDone
)
{
NSThread
*
thread
;
NSAutoreleasePool
*
pool
=
[[
NSAutoreleasePool
alloc
]
init
];
[
object
performSelector
:
function
onThread
:
sink_class
->
ns_app_thread
if
(
sink_class
->
ns_app_thread
==
NULL
){
thread
=
[
NSThread
mainThread
];
}
else
{
thread
=
sink_class
->
ns_app_thread
;
}
[
object
performSelector
:
function
onThread
:
thread
withObject:
data
waitUntilDone
:
waitUntilDone
];
[
pool
release
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment