vlc/vlc-3.0 | branch: master | Thomas Guillem <tho...@gllm.fr> | Tue Feb 6 15:27:23 2018 +0100| [a8ccce6780c39e5f4ab82935e42e0383616189fc] | committer: Jean-Baptiste Kempf
macosx: renderer: add unique identifier (cherry picked from commit c8eb4d2469bc7ca8ed9d973d928f74a3272cc34c) Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org> > http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=a8ccce6780c39e5f4ab82935e42e0383616189fc --- modules/gui/macosx/VLCRendererItem.h | 2 ++ modules/gui/macosx/VLCRendererItem.m | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/modules/gui/macosx/VLCRendererItem.h b/modules/gui/macosx/VLCRendererItem.h index 421c88a42c..3660b90eb0 100644 --- a/modules/gui/macosx/VLCRendererItem.h +++ b/modules/gui/macosx/VLCRendererItem.h @@ -49,6 +49,8 @@ */ - (NSString*)name; +- (NSString*)identifier; + /** The iconURI of the renderer item */ diff --git a/modules/gui/macosx/VLCRendererItem.m b/modules/gui/macosx/VLCRendererItem.m index 428929afb6..fedce35933 100644 --- a/modules/gui/macosx/VLCRendererItem.m +++ b/modules/gui/macosx/VLCRendererItem.m @@ -55,6 +55,14 @@ return [NSString stringWithUTF8String:name]; } +- (NSString*)identifier +{ + const char *sout = vlc_renderer_item_sout(_rendererItem); + if (!sout) + return nil; + return [NSString stringWithUTF8String:sout]; +} + - (NSString*)iconURI { const char *uri = vlc_renderer_item_icon_uri(_rendererItem); _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits