Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
9406b4cc
Commit
9406b4cc
authored
Jan 29, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/framework: Hack ourselves to get extensions.
parent
d96b2976
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
projects/macosx/framework/Sources/VLCExtensionsManager.m
projects/macosx/framework/Sources/VLCExtensionsManager.m
+25
-2
No files found.
projects/macosx/framework/Sources/VLCExtensionsManager.m
View file @
9406b4cc
...
...
@@ -13,6 +13,31 @@
#import <vlc_extensions.h>
#import <vlc_input.h>
// Here comes the nasty hack.
#import "../../../../src/control/media_player_internal.h"
#import "../../../../src/control/libvlc_internal.h"
static
input_thread_t
*
libvlc_media_player_get_input_thread
(
libvlc_media_player_t
*
player
)
{
vlc_mutex_lock
(
&
player
->
object_lock
);
input_thread_t
*
input
=
player
->
p_input_thread
;
if
(
input
)
vlc_object_hold
(
input
);
vlc_mutex_unlock
(
&
player
->
object_lock
);
return
input
;
}
static
vlc_object_t
*
libvlc_get_vlc_instance
(
libvlc_instance_t
*
instance
)
{
vlc_mutex_lock
(
&
instance
->
instance_lock
);
libvlc_int_t
*
libvlc
=
instance
->
p_libvlc_int
;
if
(
libvlc
)
vlc_object_hold
(
libvlc
);
vlc_mutex_unlock
(
&
instance
->
instance_lock
);
return
VLC_OBJECT
(
libvlc
);
}
#define _instance ((extensions_manager_t *)instance)
@implementation
VLCExtensionsManager
...
...
@@ -30,8 +55,6 @@ static VLCExtensionsManager *sharedManager = nil;
-
(
void
)
dealloc
{
vlc_object_t
*
libvlc
=
libvlc_get_vlc_instance
([
VLCLibrary
sharedInstance
]);
vlc_object_release
(
libvlc
);
module_unneed
(
_instance
,
_instance
->
p_module
);
vlc_object_release
(
_instance
);
...
...
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