vlc | branch: master | David Fuhrmann <[email protected]> | Sun Jan 21 14:25:26 2018 +0100| [a9104034bd7ce17cf28f54a76950194d4821e374] | committer: David Fuhrmann
macosx: Search service discovery playlist node by translated title This is analogous to the qt intf change in 155a3443e8c9d15cc4b587206963141539925e3e. closes #19514 > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a9104034bd7ce17cf28f54a76950194d4821e374 --- 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 f6d2385d44..09544afa79 100644 --- a/modules/gui/macosx/VLCMainWindow.m +++ b/modules/gui/macosx/VLCMainWindow.m @@ -1066,9 +1066,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; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
