Ignore:
Timestamp:
May 16, 2014, 9:51:55 AM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update trunk to latest 0.8.7

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/skingui/mediabarpanel.cpp

    r156 r165  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2013 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
    33    umplayer, Copyright (C) 2010 Ori Rejwan
    44
     
    9797{
    9898    core = c;
    99     connect(core, SIGNAL(mediaStartPlay()), this, SLOT(setDuration()) );
    100     connect( core, SIGNAL(showTime(double)), this, SLOT(gotCurrentTime(double)) );
    101     connect( core, SIGNAL(mediaInfoChanged()), this, SLOT(updateMediaInfo()) );
    102     connect( core, SIGNAL(buffering()), this, SLOT(setBuffering()) );
     99    connect(core, SIGNAL(mediaStartPlay()), this, SLOT(setDuration()));
     100    connect(core, SIGNAL(newDuration(double)), this, SLOT(setDuration()));
     101    connect(core, SIGNAL(showTime(double)), this, SLOT(gotCurrentTime(double)));
     102    connect(core, SIGNAL(mediaInfoChanged()), this, SLOT(updateMediaInfo()));
     103    connect(core, SIGNAL(buffering()), this, SLOT(setBuffering()));
    103104}
    104105
     
    122123    //QString s = QString("%1 (%2x%3)").arg(core->mdat.displayName()).arg(core->mdat.video_width).arg(core->mdat.video_height);
    123124    mediaPanel->setMediaLabelText(core->mdat.displayName());
    124     QString s = QString("%1x%2").arg(core->mdat.video_width).arg(core->mdat.video_height);
    125     mediaPanel->setResolutionLabelText(s);
     125
     126    if ((core->mdat.video_width != 0) && (core->mdat.video_height != 0)) {
     127        QString s = QString("%1x%2").arg(core->mdat.video_width).arg(core->mdat.video_height);
     128        mediaPanel->setResolutionLabelText(s);
     129    } else {
     130        mediaPanel->setResolutionLabelText(" ");
     131    }
    126132}
    127133
Note: See TracChangeset for help on using the changeset viewer.