Skip to content

Commit

Permalink
Fix unintialised TMediaPlayer
Browse files Browse the repository at this point in the history
  • Loading branch information
vadi2 committed Dec 3, 2019
1 parent 8804114 commit bd4107f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TMedia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ void TMedia::play(TMediaData& mediaData)
return;
}

TMediaPlayer* pPlayer;
TMediaPlayer* pPlayer {};

if (mediaData.getMediaType() == TMediaData::MediaTypeMusic) {
pPlayer = TMedia::matchMediaPlayer(mediaData, fileNameList.at(0));
Expand Down Expand Up @@ -837,6 +837,7 @@ void TMedia::play(TMediaData& mediaData)
}

playlist->setCurrentIndex(1);
qDebug() << pPlayer->getMediaPlayer();
pPlayer->getMediaPlayer()->setPlaylist(playlist);
}

Expand Down

0 comments on commit bd4107f

Please sign in to comment.