[vlc-commits] qml: correctly add url media

Prince Gupta git at videolan.org
Tue Apr 6 13:12:00 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Mon Mar  1 21:15:27 2021 +0530| [03586cce2de5cd48c57787cf3cb49f0636c74e6f] | committer: Pierre Lamot

qml: correctly add url media

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=03586cce2de5cd48c57787cf3cb49f0636c74e6f
---

 modules/gui/qt/network/qml/DiscoverUrlDisplay.qml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/network/qml/DiscoverUrlDisplay.qml b/modules/gui/qt/network/qml/DiscoverUrlDisplay.qml
index 23e1215f2b..a98852bcab 100644
--- a/modules/gui/qt/network/qml/DiscoverUrlDisplay.qml
+++ b/modules/gui/qt/network/qml/DiscoverUrlDisplay.qml
@@ -63,7 +63,10 @@ Widgets.NavigableFocusScope {
                 }
 
                 onAccepted: {
-                    mainPlaylistController.append([text], true)
+                    if (urlListDisplay.status == Loader.Ready)
+                        urlListDisplay.item.model.addAndPlay(text)
+                    else
+                        mainPlaylistController.append([text], true)
                 }
 
                 Keys.priority: Keys.AfterItem



More information about the vlc-commits mailing list