[vlc-commits] aout: export used module internal name

Thomas Guillem git at videolan.org
Thu Mar 22 09:47:04 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Mar 20 16:01:03 2018 +0100| [3aa4fda0d0742c7a68b57600c8bec311b3078d72] | committer: Thomas Guillem

aout: export used module internal name

This can be used by intf modules in order to show different settings depending
on audio modules.

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

 src/audio_output/output.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/audio_output/output.c b/src/audio_output/output.c
index caf398ea18..78adace304 100644
--- a/src/audio_output/output.c
+++ b/src/audio_output/output.c
@@ -249,6 +249,9 @@ audio_output_t *aout_New (vlc_object_t *parent)
         return NULL;
     }
 
+    var_Create (aout, "module-name", VLC_VAR_STRING);
+    var_SetString (aout, "module-name", module_get_object(owner->module));
+
     /*
      * Persistent audio output variables
      */



More information about the vlc-commits mailing list