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
7f88d114
Commit
7f88d114
authored
Jan 01, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VLCMediaPlayer.m: Be closer to libvlc.
parent
3f6da3f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
extras/MacOSX/Framework/Sources/VLCMediaPlayer.m
extras/MacOSX/Framework/Sources/VLCMediaPlayer.m
+1
-14
No files found.
extras/MacOSX/Framework/Sources/VLCMediaPlayer.m
View file @
7f88d114
...
...
@@ -421,20 +421,13 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t *event, void *s
// usleep(1000);
}
[
self
willChangeValueForKey
:
@"media"
];
[
media
release
];
media
=
[
value
retain
];
[
self
didChangeValueForKey
:
@"media"
];
libvlc_exception_t
ex
;
libvlc_exception_init
(
&
ex
);
libvlc_media_instance_set_media_descriptor
(
instance
,
[
media
libVLCMediaDescriptor
],
&
ex
);
quit_on_exception
(
&
ex
);
if
(
media
)
{
if
(
wasPlaying
)
[
self
play
];
}
}
}
...
...
@@ -444,17 +437,11 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t *event, void *s
}
-
(
BOOL
)
play
{
// Return if there is no media available or if the stream is already playing something
if
(
!
media
||
[
self
isPlaying
])
return
[
self
isPlaying
];
{
libvlc_exception_t
ex
;
libvlc_exception_init
(
&
ex
);
libvlc_media_instance_play
(
(
libvlc_media_instance_t
*
)
instance
,
&
ex
);
quit_on_exception
(
&
ex
);
return
YES
;
}
...
...
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