- retval->position = libvlc_media_player_get_time( self->p_media_player, &ex );
- if( libvlc_exception_raised( &ex ) )
- {
- libvlc_exception_clear( &ex );
- retval->position = 0;
- }
-
- retval->length = libvlc_media_player_get_length( self->p_media_player, &ex );
- if( libvlc_exception_raised( &ex ) )
- {
- libvlc_exception_clear( &ex );
- retval->length = 0;
- }
-
+ retval->position = libvlc_media_player_get_time( self->p_media_player );
+ retval->length = libvlc_media_player_get_length( self->p_media_player );