[vlc-commits] macosx: renderer: add unique identifier

Thomas Guillem git at videolan.org
Tue Feb 6 18:36:58 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Feb  6 15:27:23 2018 +0100| [c8eb4d2469bc7ca8ed9d973d928f74a3272cc34c] | committer: Thomas Guillem

macosx: renderer: add unique identifier

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

 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);



More information about the vlc-commits mailing list