diff --git a/playback/player/qt/qgstplayer.cpp b/playback/player/qt/qgstplayer.cpp index 5def6fb0fb..6667e8d6c4 100644 --- a/playback/player/qt/qgstplayer.cpp +++ b/playback/player/qt/qgstplayer.cpp @@ -495,7 +495,7 @@ void Player::onEndOfStreamReached(Player *player) void Player::setUri(QUrl url) { Q_ASSERT(player_ != 0); - QByteArray uri = url.toString().toLocal8Bit(); + QByteArray uri = url.toEncoded(); gst_player_set_uri(player_, uri.data());