[vlc-commits] macosx: Search service discovery playlist node by translated title

David Fuhrmann git at videolan.org
Sun Jan 21 14:40:54 CET 2018


vlc/vlc-3.0 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Jan 21 14:25:26 2018 +0100| [4fc92b9b3a7becfbfcf768ef39310b5c8cc2c345] | committer: David Fuhrmann

macosx: Search service discovery playlist node by translated title

This is analogous to the qt intf change in
155a3443e8c9d15cc4b587206963141539925e3e.

closes #19514

(cherry picked from commit a9104034bd7ce17cf28f54a76950194d4821e374)
Signed-off-by: David Fuhrmann <dfuhrmann at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=4fc92b9b3a7becfbfcf768ef39310b5c8cc2c345
---

 modules/gui/macosx/VLCMainWindow.m | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/VLCMainWindow.m b/modules/gui/macosx/VLCMainWindow.m
index 996aa3a6e8..52c22c8eab 100644
--- a/modules/gui/macosx/VLCMainWindow.m
+++ b/modules/gui/macosx/VLCMainWindow.m
@@ -1073,9 +1073,12 @@ static const float f_min_window_height = 307.;
         }
     } else {
         PL_LOCK;
-        playlist_item_t *pl_item = playlist_ChildSearchName(&p_playlist->root, [[item untranslatedTitle] UTF8String]);
-        if (pl_item != NULL)
+        const char *title = [[item title] UTF8String];
+        playlist_item_t *pl_item = playlist_ChildSearchName(&p_playlist->root, title);
+        if (pl_item)
             [[[[VLCMain sharedInstance] playlist] model] changeRootItem:pl_item];
+        else
+            msg_Err(getIntf(), "Could not find playlist entry with name %s", title);
 
         PL_UNLOCK;
     }



More information about the vlc-commits mailing list