Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
009252c4
Commit
009252c4
authored
Oct 01, 2006
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more format strings
parent
0326005e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
2 deletions
+44
-2
modules/video_filter/marq.c
modules/video_filter/marq.c
+44
-2
No files found.
modules/video_filter/marq.c
View file @
009252c4
...
...
@@ -90,11 +90,13 @@ struct filter_sys_t
"Meta data related: $a = artist, $b = album, $c = copyright, " \
"$d = description, $e = encoded by, $g = genre, " \
"$l = language, $n = track num, $p = now playing, " \
"$r = rating, $t = title, $u = url, $A = date, " \
"$r = rating, $s = subtitles language, $t = title, "\
"$u = url, $A = date, " \
"$B = audio bitrate (in kb/s), $C = chapter," \
"$D = duration, $F = full name with path, $I = title, "\
"$L = time left, " \
"$N = name, $P = position (in %), $S = audio sample rate (in kHz), " \
"$N = name, $O = audio language, $P = position (in %), $R = rate, " \
"$S = audio sample rate (in kHz), " \
"$T = time, $U = publisher, $V = volume, $_ = new line) ")
#define POSX_TEXT N_("X offset")
#define POSX_LONGTEXT N_("X offset, from the left screen edge." )
...
...
@@ -341,6 +343,20 @@ char *FormatMeta( vlc_object_t *p_object, char *string )
INSERT_STRING
(
p_item
&&
p_item
->
p_meta
,
p_item
->
p_meta
->
psz_rating
);
break
;
case
's'
:
{
char
*
lang
;
if
(
p_input
)
{
lang
=
var_GetString
(
p_input
,
"sub-language"
);
}
else
{
lang
=
strdup
(
"-"
);
}
INSERT_STRING
(
1
,
lang
);
break
;
}
case
't'
:
INSERT_STRING
(
p_item
&&
p_item
->
p_meta
,
p_item
->
p_meta
->
psz_title
);
...
...
@@ -423,6 +439,20 @@ char *FormatMeta( vlc_object_t *p_object, char *string )
case
'N'
:
INSERT_STRING
(
p_item
,
p_item
->
psz_name
);
break
;
case
'O'
:
{
char
*
lang
;
if
(
p_input
)
{
lang
=
var_GetString
(
p_input
,
"audio-language"
);
}
else
{
lang
=
strdup
(
"-"
);
}
INSERT_STRING
(
1
,
lang
);
break
;
}
case
'P'
:
if
(
p_input
)
{
...
...
@@ -435,6 +465,18 @@ char *FormatMeta( vlc_object_t *p_object, char *string )
}
INSERT_STRING
(
1
,
buf
);
break
;
case
'R'
:
if
(
p_input
)
{
int
r
=
var_GetInteger
(
p_input
,
"rate"
);
snprintf
(
buf
,
10
,
"%d.%d"
,
r
/
1000
,
r
%
1000
);
}
else
{
sprintf
(
buf
,
"-"
);
}
INSERT_STRING
(
1
,
buf
);
break
;
case
'S'
:
if
(
p_input
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment