Skip to content

Commit af236cb

Browse files
committed
Update aomusicplayer.cpp
1 parent 4e16537 commit af236cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/aomusicplayer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ QString AOMusicPlayer::playStream(QString song, int streamId, bool loopEnabled,
4343
BASS_ChannelStop(m_stream_list[streamId]);
4444
return QObject::tr("[MISSING] Streaming disabled.");
4545
}
46-
QUrl l_url = QUrl(f_path);
47-
newstream = BASS_StreamCreateURL(l_url.toEncoded().toStdString().c_str(), 0, flags, nullptr, 0);
46+
newstream = BASS_StreamCreateURL(f_path.toUtf8().constData(), 0, flags, nullptr, 0);
4847
}
4948
else
5049
{

0 commit comments

Comments
 (0)