Commit 7810e789 authored by Clément Stenac's avatar Clément Stenac

Don't spit too much debug

parent 37f05a79
......@@ -316,8 +316,12 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_intf ) :
void PlaylistWidget::setArt( QString url )
{
fprintf( stderr, "************** YEAH ! *************\n" );
art->setPixmap( QPixmap( url ) );
if( prevArt != url )
{
fprintf( stderr, "Display %s\n", qta( url ) );
art->setPixmap( QPixmap( url ) );
prevArt = url;
}
}
PlaylistWidget::~PlaylistWidget()
......
......@@ -137,6 +137,7 @@ private:
PLPanel *rightPanel;
QPushButton *addButton;
QLabel *art;
QString prevArt;
private slots:
void setArt( QString );
signals:
......
......@@ -132,13 +132,10 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
strings[2] = QString( psz_duration );
type = p_item->p_input->i_type;
current = iscurrent;
fprintf( stderr, "Updating current %i\n" );
fprintf( stderr, "Meta %p art %s\n", p_item->p_input->p_meta,p_item->p_input->p_meta ?p_item->p_input->p_meta->psz_arturl : "non" );
if( current && p_item->p_input->p_meta &&
p_item->p_input->p_meta->psz_arturl &&
!strncmp( p_item->p_input->p_meta->psz_arturl, "file://", 7 ) )
{
fprintf( stderr, "Have art %s\n", p_item->p_input->p_meta->psz_arturl );
model->sendArt( qfu( p_item->p_input->p_meta->psz_arturl ) );
}
}
......@@ -605,7 +602,6 @@ void PLModel::UpdateTreeItem( playlist_item_t *p_item, PLItem *item,
void PLModel::sendArt( QString url )
{
QString arturl = url.replace( "file://",QString("" ) );
fprintf( stderr, "send %s\n", qta( arturl ) );
emit artSet( arturl );
}
......
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