Commit ec396c6a authored by Olivier Aubert's avatar Olivier Aubert

src/control/mediacontrol_core.c: libvlc_input now uses milliseconds as

time unit
parent bd4da01e
...@@ -141,7 +141,7 @@ mediacontrol_get_media_position( mediacontrol_Instance *self, ...@@ -141,7 +141,7 @@ mediacontrol_get_media_position( mediacontrol_Instance *self,
if( a_key == mediacontrol_MediaTime ) if( a_key == mediacontrol_MediaTime )
{ {
retval->value = pos / 1000; retval->value = pos;
} }
else else
{ {
...@@ -154,7 +154,7 @@ mediacontrol_get_media_position( mediacontrol_Instance *self, ...@@ -154,7 +154,7 @@ mediacontrol_get_media_position( mediacontrol_Instance *self,
retval->value = mediacontrol_unit_convert( self->p_playlist->p_input, retval->value = mediacontrol_unit_convert( self->p_playlist->p_input,
mediacontrol_MediaTime, mediacontrol_MediaTime,
a_key, a_key,
pos / 1000 ); pos );
} }
libvlc_input_free( p_input ); libvlc_input_free( p_input );
return retval; return retval;
...@@ -177,7 +177,7 @@ mediacontrol_set_media_position( mediacontrol_Instance *self, ...@@ -177,7 +177,7 @@ mediacontrol_set_media_position( mediacontrol_Instance *self,
HANDLE_LIBVLC_EXCEPTION_VOID( &ex ); HANDLE_LIBVLC_EXCEPTION_VOID( &ex );
i_pos = mediacontrol_position2microsecond( self->p_playlist->p_input, a_position ); i_pos = mediacontrol_position2microsecond( self->p_playlist->p_input, a_position );
libvlc_input_set_time( p_input, i_pos, &ex ); libvlc_input_set_time( p_input, i_pos / 1000, &ex );
libvlc_input_free( p_input ); libvlc_input_free( p_input );
HANDLE_LIBVLC_EXCEPTION_VOID( &ex ); HANDLE_LIBVLC_EXCEPTION_VOID( &ex );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment