mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
playback/player/qt: Use QUrl::toEncoded() instead of ::toString()
The former properly encodes the URL components to give a valid URL, the latter generates a human-readable URL.
This commit is contained in:
parent
d909deaaf4
commit
f7ce5cd694
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in a new issue