Commit 2cd7ae24 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

MacOSX/Framework/VLCMediaPlayer.m: Don't put code that should be in libvlc in the framework.

parent d591dcc0
......@@ -402,15 +402,6 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
if (media && [media compare:value] == NSOrderedSame)
return;
BOOL wasPlaying;
if (wasPlaying = [self isPlaying])
{
[self pause];
// // TODO: Should we wait until it stops playing?
// while ([self isPlaying])
// usleep(1000);
}
[media release];
media = [value retain];
......@@ -475,7 +466,7 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
* and tries to recontact us on the main thread */
/* FIXME: to do this properly we need to do some locking. We may want
* to move that to libvlc */
[self performSelectorInBackground:@selector(pause) withObject:nil];
[self performSelectorInBackground:@selector(stop) withObject:nil];
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment