Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
2c88f1bf
Commit
2c88f1bf
authored
Aug 27, 2008
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always enforce the "don't show if unavailable" option in format strings.
parent
f7c80360
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/text/strings.c
src/text/strings.c
+7
-7
No files found.
src/text/strings.c
View file @
2c88f1bf
...
@@ -638,7 +638,7 @@ char *str_format_time( const char *tformat )
...
@@ -638,7 +638,7 @@ char *str_format_time( const char *tformat )
d += len; \
d += len; \
free( string ); \
free( string ); \
} \
} \
else
\
else
if( !b_empty_if_na )
\
{ \
{ \
*(dst+d) = '-'; \
*(dst+d) = '-'; \
d++; \
d++; \
...
@@ -655,8 +655,8 @@ char *str_format_time( const char *tformat )
...
@@ -655,8 +655,8 @@ char *str_format_time( const char *tformat )
char
*
__str_format_meta
(
vlc_object_t
*
p_object
,
const
char
*
string
)
char
*
__str_format_meta
(
vlc_object_t
*
p_object
,
const
char
*
string
)
{
{
const
char
*
s
=
string
;
const
char
*
s
=
string
;
int
b_is_format
=
0
;
bool
b_is_format
=
false
;
int
b_empty_if_na
=
0
;
bool
b_empty_if_na
=
false
;
char
buf
[
10
];
char
buf
[
10
];
int
i_size
=
strlen
(
string
)
+
1
;
/* +1 to store '\0' */
int
i_size
=
strlen
(
string
)
+
1
;
/* +1 to store '\0' */
char
*
dst
=
strdup
(
string
);
char
*
dst
=
strdup
(
string
);
...
@@ -938,7 +938,7 @@ char *__str_format_meta( vlc_object_t *p_object, const char *string )
...
@@ -938,7 +938,7 @@ char *__str_format_meta( vlc_object_t *p_object, const char *string )
break
;
break
;
case
' '
:
case
' '
:
b_empty_if_na
=
1
;
b_empty_if_na
=
true
;
break
;
break
;
default:
default:
...
@@ -947,12 +947,12 @@ char *__str_format_meta( vlc_object_t *p_object, const char *string )
...
@@ -947,12 +947,12 @@ char *__str_format_meta( vlc_object_t *p_object, const char *string )
break
;
break
;
}
}
if
(
*
s
!=
' '
)
if
(
*
s
!=
' '
)
b_is_format
=
0
;
b_is_format
=
false
;
}
}
else
if
(
*
s
==
'$'
)
else
if
(
*
s
==
'$'
)
{
{
b_is_format
=
1
;
b_is_format
=
true
;
b_empty_if_na
=
0
;
b_empty_if_na
=
false
;
}
}
else
else
{
{
...
...
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