[vlc-commits] libvlc-module: Adding a input-title-format variable
Hugo Beauzée-Luyssen
git at videolan.org
Fri Apr 22 15:12:35 CEST 2011
vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Apr 21 11:49:44 2011 +0200| [96443b233430b031203a721a18f890837d5c57d4] | committer: Jean-Baptiste Kempf
libvlc-module: Adding a input-title-format variable
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=96443b233430b031203a721a18f890837d5c57d4
---
src/libvlc-module.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index b3b25f2..a666db7 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -783,6 +783,12 @@ static const char *const ppsz_clock_descriptions[] =
"This is the maximum size in bytes of the temporary files " \
"that will be used to store the timeshifted streams." )
+#define INPUT_TITLE_FORMAT_TEXT N_( "Change title according to current media" )
+#define INPUT_TITLE_FORMAT_LONGTEXT N_( "This option allows you to set the title according to what's being played<br>" \
+ "$a: Artist<br>$b: Album<br>$c: Copyright<br>$t: Title<br>$g: Genre<br>" \
+ "$n: Track num<br>$p: Now playing<br>$A: Date<br>$D: Duration<br>" \
+ "$Z: \"Now playing\" (Fall back on Title - Artist)" )
+
// DEPRECATED
#define SUB_CAT_LONGTEXT N_( \
"These options allow you to modify the behavior of the subpictures " \
@@ -1952,6 +1958,8 @@ vlc_module_begin ()
add_integer( "input-timeshift-granularity", -1, INPUT_TIMESHIFT_GRANULARITY_TEXT,
INPUT_TIMESHIFT_GRANULARITY_LONGTEXT, true )
+ add_string( "input-title-format", "$a - $t", INPUT_TITLE_FORMAT_TEXT, INPUT_TITLE_FORMAT_LONGTEXT, false );
+
/* Decoder options */
add_category_hint( N_("Decoders"), CODEC_CAT_LONGTEXT , true )
add_string( "codec", NULL, CODEC_TEXT,
More information about the vlc-commits
mailing list