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