Commit 4fc92b9b authored by David Fuhrmann's avatar David Fuhrmann

macosx: Search service discovery playlist node by translated title

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

closes #19514

(cherry picked from commit a9104034)
Signed-off-by: 's avatarDavid Fuhrmann <dfuhrmann@videolan.org>
parent d427a9f9
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment