[vlc-devel] commit: macosx/framework: Slim down to the minimum VLCMediaPlayer -play and -pause methods. ( Pierre d'Herbemont )
git version control
git at videolan.org
Tue Aug 25 03:42:25 CEST 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Tue Aug 25 03:41:48 2009 +0200| [ad6a0c79fb5e6ef648346536950d0f6c9522ea28] | committer: Pierre d'Herbemont
macosx/framework: Slim down to the minimum VLCMediaPlayer -play and -pause methods.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ad6a0c79fb5e6ef648346536950d0f6c9522ea28
---
projects/macosx/framework/Sources/VLCMediaPlayer.m | 18 ------------------
1 files changed, 0 insertions(+), 18 deletions(-)
diff --git a/projects/macosx/framework/Sources/VLCMediaPlayer.m b/projects/macosx/framework/Sources/VLCMediaPlayer.m
index 73b7208..493b471 100644
--- a/projects/macosx/framework/Sources/VLCMediaPlayer.m
+++ b/projects/macosx/framework/Sources/VLCMediaPlayer.m
@@ -464,24 +464,11 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
return;
}
- // Return if there is no media available or if the stream is not paused or
- // playing something else
- if (!media || (![self isPlaying] && [self state] != VLCMediaPlayerStatePaused))
- return;
-
- // Should never get here.
- if (!instance)
- return;
-
-
// Pause the stream
libvlc_exception_t ex;
libvlc_exception_init( &ex );
libvlc_media_player_pause( (libvlc_media_player_t *)instance, &ex );
catch_exception( &ex );
-
- // TODO: Should we record the time in case the media instance is destroyed
- // then rebuilt?
}
- (void)stop
@@ -495,11 +482,6 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
[self performSelectorInBackground:@selector(stop) withObject:nil];
return;
}
-
- // Return if there is no media available or if the system is not in play status
- // or pause status.
- if (!media)
- return;
libvlc_exception_t ex;
libvlc_exception_init( &ex );
More information about the vlc-devel
mailing list