Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
a406c082
Commit
a406c082
authored
Jan 29, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/framework: Make sure -[VLCExtensionManager mediaPlayer] is KVO.
parent
3f4aec54
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
projects/macosx/framework/Headers/Public/VLCExtensionsManager.h
...ts/macosx/framework/Headers/Public/VLCExtensionsManager.h
+3
-0
projects/macosx/framework/Sources/VLCExtensionsManager.m
projects/macosx/framework/Sources/VLCExtensionsManager.m
+11
-0
No files found.
projects/macosx/framework/Headers/Public/VLCExtensionsManager.h
View file @
a406c082
...
@@ -15,8 +15,11 @@
...
@@ -15,8 +15,11 @@
void
*
instance
;
void
*
instance
;
NSMutableArray
*
_extensions
;
NSMutableArray
*
_extensions
;
VLCMediaPlayer
*
_player
;
VLCMediaPlayer
*
_player
;
void
*
_previousInput
;
}
}
+
(
VLCExtensionsManager
*
)
sharedManager
;
+
(
VLCExtensionsManager
*
)
sharedManager
;
-
(
NSArray
*
)
extensions
;
-
(
NSArray
*
)
extensions
;
-
(
void
)
runExtension
:(
VLCExtension
*
)
extension
;
-
(
void
)
runExtension
:(
VLCExtension
*
)
extension
;
@property
(
readwrite
,
retain
)
VLCMediaPlayer
*
mediaPlayer
;
@end
@end
projects/macosx/framework/Sources/VLCExtensionsManager.m
View file @
a406c082
...
@@ -88,6 +88,12 @@ static VLCExtensionsManager *sharedManager = nil;
...
@@ -88,6 +88,12 @@ static VLCExtensionsManager *sharedManager = nil;
-
(
void
)
mediaPlayerLikelyChangedInput
-
(
void
)
mediaPlayerLikelyChangedInput
{
{
input_thread_t
*
input
=
_player
?
libvlc_media_player_get_input_thread
([
_player
libVLCMediaPlayer
])
:
NULL
;
input_thread_t
*
input
=
_player
?
libvlc_media_player_get_input_thread
([
_player
libVLCMediaPlayer
])
:
NULL
;
// Don't send more than appropriate
if
(
_previousInput
==
input
)
return
;
_previousInput
=
input
;
for
(
VLCExtension
*
extension
in
_extensions
)
for
(
VLCExtension
*
extension
in
_extensions
)
extension_SetInput
(
_instance
,
[
extension
instance
],
input
);
extension_SetInput
(
_instance
,
[
extension
instance
],
input
);
if
(
input
)
if
(
input
)
...
@@ -110,4 +116,9 @@ static VLCExtensionsManager *sharedManager = nil;
...
@@ -110,4 +116,9 @@ static VLCExtensionsManager *sharedManager = nil;
if
(
player
)
if
(
player
)
[
center
addObserver
:
self
selector
:
@selector
(
mediaPlayerLikelyChangedInput
)
name
:
VLCMediaPlayerStateChanged
object
:
_player
];
[
center
addObserver
:
self
selector
:
@selector
(
mediaPlayerLikelyChangedInput
)
name
:
VLCMediaPlayerStateChanged
object
:
_player
];
}
}
-
(
VLCMediaPlayer
*
)
mediaPlayer
{
return
_player
;
}
@end
@end
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