[vlc-devel] [PATCH 1/2] macosx: renderer: add unique identifier
Thomas Guillem
thomas at gllm.fr
Tue Feb 6 16:34:08 CET 2018
---
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);
--
2.11.0
More information about the vlc-devel
mailing list