[vlc-devel] commit: osx/framework: added a bit more exception handling ( Felix Paul Kühne )
git version control
git at videolan.org
Sun Dec 20 13:52:03 CET 2009
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Dec 20 13:51:59 2009 +0100| [4ad5f907099fde048ad49d2b83695eac93e4b008] | committer: Felix Paul Kühne
osx/framework: added a bit more exception handling
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4ad5f907099fde048ad49d2b83695eac93e4b008
---
projects/macosx/framework/Sources/VLCMediaPlayer.m | 35 ++++++++++++++++----
1 files changed, 28 insertions(+), 7 deletions(-)
diff --git a/projects/macosx/framework/Sources/VLCMediaPlayer.m b/projects/macosx/framework/Sources/VLCMediaPlayer.m
index 662e35e..e609e01 100644
--- a/projects/macosx/framework/Sources/VLCMediaPlayer.m
+++ b/projects/macosx/framework/Sources/VLCMediaPlayer.m
@@ -260,7 +260,10 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
- (void)setVideoAspectRatio:(char *)value
{
- libvlc_video_set_aspect_ratio( instance, value, NULL );
+ libvlc_exception_t ex;
+ libvlc_exception_init( &ex );
+ libvlc_video_set_aspect_ratio( instance, value, &ex );
+ catch_exception( &ex );
}
- (char *)videoAspectRatio
@@ -274,7 +277,10 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
- (void)setVideoSubTitles:(int)value
{
- libvlc_video_set_spu( instance, value, NULL );
+ libvlc_exception_t ex;
+ libvlc_exception_init( &ex );
+ libvlc_video_set_spu( instance, value, &ex );
+ catch_exception( &ex );
}
- (int)videoSubTitles
@@ -288,7 +294,10 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
- (void)setVideoCropGeometry:(char *)value
{
- libvlc_video_set_crop_geometry( instance, value, NULL );
+ libvlc_exception_t ex;
+ libvlc_exception_init( &ex );
+ libvlc_video_set_crop_geometry( instance, value, &ex );
+ catch_exception( &ex );
}
- (char *)videoCropGeometry
@@ -302,7 +311,10 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
- (void)setVideoTeleText:(int)value
{
- libvlc_video_set_teletext( instance, value, NULL );
+ libvlc_exception_t ex;
+ libvlc_exception_init( &ex );
+ libvlc_video_set_teletext( instance, value, &ex );
+ catch_exception( &ex );
}
- (int)videoTeleText
@@ -332,7 +344,10 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
- (void)setRate:(float)value
{
- libvlc_media_player_set_rate( instance, value, NULL );
+ libvlc_exception_t ex;
+ libvlc_exception_init( &ex );
+ libvlc_media_player_set_rate( instance, value, &ex );
+ catch_exception( &ex );
}
- (float)rate
@@ -480,7 +495,10 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
- (void)setAudioTrack:(int)value
{
- libvlc_audio_set_track( instance, value, NULL );
+ libvlc_exception_t ex;
+ libvlc_exception_init( &ex );
+ libvlc_audio_set_track( instance, value, &ex );
+ catch_exception( &ex );
}
- (int)audioTrack
@@ -503,7 +521,10 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
- (void)setAudioChannel:(int)value
{
- libvlc_audio_set_channel( instance, value, NULL );
+ libvlc_exception_t ex;
+ libvlc_exception_init( &ex );
+ libvlc_audio_set_channel( instance, value, &ex );
+ catch_exception( &ex );
}
- (int)audioChannel
More information about the vlc-devel
mailing list