[vlc-devel] commit: Mac OS X framework: libvlc_MediaPlayerPlayed -> libvlc_MediaPlayerPlaying. (Derk-Jan Hartman )
git version control
git at videolan.org
Sat Jul 19 21:45:33 CEST 2008
vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Sat Jul 19 21:44:36 2008 +0200| [2cd7d252bbe5e0ac8543a9e9c6e6faeedac76c14]
Mac OS X framework: libvlc_MediaPlayerPlayed -> libvlc_MediaPlayerPlaying.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2cd7d252bbe5e0ac8543a9e9c6e6faeedac76c14
---
projects/macosx/framework/Sources/VLCMediaPlayer.m | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/projects/macosx/framework/Sources/VLCMediaPlayer.m b/projects/macosx/framework/Sources/VLCMediaPlayer.m
index c1aa3e2..7188760 100644
--- a/projects/macosx/framework/Sources/VLCMediaPlayer.m
+++ b/projects/macosx/framework/Sources/VLCMediaPlayer.m
@@ -88,7 +88,7 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
{
VLCMediaPlayerState newState;
- if( event->type == libvlc_MediaPlayerPlayed )
+ if( event->type == libvlc_MediaPlayerPlaying )
newState = VLCMediaPlayerStatePlaying;
else if( event->type == libvlc_MediaPlayerPaused )
newState = VLCMediaPlayerStatePaused;
@@ -640,7 +640,7 @@ static const VLCMediaPlayerState libvlc_to_local_state[] =
// Attach event observers into the media instance
libvlc_event_manager_t * p_em = libvlc_media_player_event_manager( instance, &ex );
- libvlc_event_attach( p_em, libvlc_MediaPlayerPlayed, HandleMediaInstanceStateChanged, self, &ex );
+ libvlc_event_attach( p_em, libvlc_MediaPlayerPlaying, HandleMediaInstanceStateChanged, self, &ex );
libvlc_event_attach( p_em, libvlc_MediaPlayerPaused, HandleMediaInstanceStateChanged, self, &ex );
libvlc_event_attach( p_em, libvlc_MediaPlayerEndReached, HandleMediaInstanceStateChanged, self, &ex );
/* FIXME: We may want to turn that off when none is interested by that */
@@ -652,7 +652,7 @@ static const VLCMediaPlayerState libvlc_to_local_state[] =
- (void)unregisterObservers
{
libvlc_event_manager_t * p_em = libvlc_media_player_event_manager( instance, NULL );
- libvlc_event_detach( p_em, libvlc_MediaPlayerPlayed, HandleMediaInstanceStateChanged, self, NULL );
+ libvlc_event_detach( p_em, libvlc_MediaPlayerPlaying, HandleMediaInstanceStateChanged, self, NULL );
libvlc_event_detach( p_em, libvlc_MediaPlayerPaused, HandleMediaInstanceStateChanged, self, NULL );
libvlc_event_detach( p_em, libvlc_MediaPlayerEndReached, HandleMediaInstanceStateChanged, self, NULL );
libvlc_event_detach( p_em, libvlc_MediaPlayerPositionChanged, HandleMediaPositionChanged, self, NULL );
More information about the vlc-devel
mailing list