Commit 16ebdc99 authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/skins2/*: removed a couple of fixme

parent 25e85b0b
...@@ -192,21 +192,9 @@ void VlcProc::manage() ...@@ -192,21 +192,9 @@ void VlcProc::manage()
if( pInput && !pInput->b_die ) if( pInput && !pInput->b_die )
{ {
// Refresh time variables // Refresh time variables
#warning "FIXME!" vlc_value_t pos;
if( true /* pInput->stream.b_seekable */ ) var_Get( pInput, "position", &pos );
{ pTime->set( pos.f_float, false );
// Refresh position in the stream
vlc_value_t pos;
var_Get( pInput, "position", &pos );
if( pos.f_float >= 0.0 )
{
pTime->set( pos.f_float, false );
}
}
else
{
pTime->set( 0, false );
}
// Get the status of the playlist // Get the status of the playlist
playlist_status_t status = getIntf()->p_sys->p_playlist->i_status; playlist_status_t status = getIntf()->p_sys->p_playlist->i_status;
...@@ -215,8 +203,7 @@ void VlcProc::manage() ...@@ -215,8 +203,7 @@ void VlcProc::manage()
pVarStopped->set( status == PLAYLIST_STOPPED ); pVarStopped->set( status == PLAYLIST_STOPPED );
pVarPaused->set( status == PLAYLIST_PAUSED ); pVarPaused->set( status == PLAYLIST_PAUSED );
#warning "FIXME!" pVarSeekable->set( pos.f_float != 0.0 );
pVarSeekable->set( true /* pInput->stream.b_seekable */ );
} }
else else
{ {
......
...@@ -58,9 +58,14 @@ const string StreamTime::getAsStringPercent() const ...@@ -58,9 +58,14 @@ const string StreamTime::getAsStringPercent() const
const string StreamTime::getAsStringCurrTime() const const string StreamTime::getAsStringCurrTime() const
{ {
#warning "FIXME!" if( getIntf()->p_sys->p_input == NULL )
if( getIntf()->p_sys->p_input == NULL || {
/* !getIntf()->p_sys->p_input->stream.b_seekable */ 0 ) return "-:--:--";
}
vlc_value_t pos;
var_Get( getIntf()->p_sys->p_input, "position", &pos );
if( pos.f_float == 0.0 )
{ {
return "-:--:--"; return "-:--:--";
} }
...@@ -74,9 +79,14 @@ const string StreamTime::getAsStringCurrTime() const ...@@ -74,9 +79,14 @@ const string StreamTime::getAsStringCurrTime() const
const string StreamTime::getAsStringTimeLeft() const const string StreamTime::getAsStringTimeLeft() const
{ {
#warning "FIXME!" if( getIntf()->p_sys->p_input == NULL )
if( getIntf()->p_sys->p_input == NULL || {
/* !getIntf()->p_sys->p_input->stream.b_seekable */ 0 ) return "-:--:--";
}
vlc_value_t pos;
var_Get( getIntf()->p_sys->p_input, "position", &pos );
if( pos.f_float == 0.0 )
{ {
return "-:--:--"; return "-:--:--";
} }
...@@ -91,9 +101,14 @@ const string StreamTime::getAsStringTimeLeft() const ...@@ -91,9 +101,14 @@ const string StreamTime::getAsStringTimeLeft() const
const string StreamTime::getAsStringDuration() const const string StreamTime::getAsStringDuration() const
{ {
#warning "FIXME!" if( getIntf()->p_sys->p_input == NULL )
if( getIntf()->p_sys->p_input == NULL || {
/* !getIntf()->p_sys->p_input->stream.b_seekable */ 0 ) return "-:--:--";
}
vlc_value_t pos;
var_Get( getIntf()->p_sys->p_input, "position", &pos );
if( pos.f_float == 0.0 )
{ {
return "-:--:--"; return "-:--:--";
} }
......
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