catch_exception( &ex );
}
-- (int)chapter
+- (int)currentChapter
{
libvlc_exception_t ex;
libvlc_exception_init( &ex );
catch_exception( &ex );
}
-- (int)title
+- (int)currentTitle
{
libvlc_exception_t ex;
libvlc_exception_init( &ex );
libvlc_exception_t ex;
libvlc_exception_init( &ex );
libvlc_media_player_pause( (libvlc_media_player_t *)instance, &ex );
- catch_exception( &ex );
+
+ // fail gracefully
+ // in most cases, it's just EOF so let's stop
+ if (libvlc_exception_raised(&ex))
+ [self stop];
+
+ libvlc_exception_clear(&ex);
}
- (void)stop