Commit 4c65173f authored by Kevin Whitaker's avatar Kevin Whitaker

Make sure to send playlist length if zero or send detected length.

parent 3aa47134
......@@ -119,7 +119,11 @@ QMap<QString, qint64> MiniMediaPlayer::currentState()
void MiniMediaPlayer::durationChanged(qint64 length)
//emit trackDurationChanged(length); //Don't emit duration changed since we already have duration. TODO: might want to use this still if implement another media source besides youtube-dl.
if(length == 0) {
emit trackDurationChanged(playlist.first().trackLength);
} else {
emit trackDurationChanged(length);
void MiniMediaPlayer::positionChanged(qint64 position)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment