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

Thomas Guillem git at videolan.org
Tue Feb 6 19:33:18 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at 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 <jb at 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);



More information about the vlc-commits mailing list