Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
904e5739
Commit
904e5739
authored
Aug 25, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notify: Don't use empty metadata
Don't put not translated string in the popup
parent
ed9a75a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
modules/misc/notify/notify.c
modules/misc/notify/notify.c
+18
-4
No files found.
modules/misc/notify/notify.c
View file @
904e5739
...
...
@@ -157,23 +157,37 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
psz_artist
=
input_item_GetArtist
(
input_GetItem
(
p_input
)
);
psz_album
=
input_item_GetAlbum
(
input_GetItem
(
p_input
)
)
;
psz_title
=
input_item_GetTitle
(
input_GetItem
(
p_input
)
);
if
(
psz_title
==
NULL
)
if
(
(
psz_title
==
NULL
)
||
EMPTY_STR
(
psz_title
)
)
{
free
(
psz_title
);
psz_title
=
input_item_GetName
(
input_GetItem
(
p_input
)
);
if
(
psz_title
==
NULL
)
}
if
(
(
psz_title
==
NULL
)
||
EMPTY_STR
(
psz_title
)
)
{
/* Not enough metadata ... */
free
(
psz_title
);
free
(
psz_artist
);
free
(
psz_album
);
vlc_object_release
(
p_input
);
return
VLC_SUCCESS
;
}
if
(
EMPTY_STR
(
psz_artist
)
)
{
free
(
psz_artist
);
psz_artist
=
NULL
;
}
if
(
EMPTY_STR
(
psz_album
)
)
{
free
(
psz_album
);
psz_album
=
NULL
;
}
vlc_object_release
(
p_input
);
if
(
psz_artist
&&
psz_album
)
snprintf
(
psz_tmp
,
MAX_LENGTH
,
"<b>%s</b>
\n
By
%s
\n
[%s]"
,
snprintf
(
psz_tmp
,
MAX_LENGTH
,
"<b>%s</b>
\n
%s
\n
[%s]"
,
psz_title
,
psz_artist
,
psz_album
);
else
if
(
psz_artist
)
snprintf
(
psz_tmp
,
MAX_LENGTH
,
"<b>%s</b>
\n
By
%s"
,
snprintf
(
psz_tmp
,
MAX_LENGTH
,
"<b>%s</b>
\n
%s"
,
psz_title
,
psz_artist
);
else
snprintf
(
psz_tmp
,
MAX_LENGTH
,
"<b>%s</b>"
,
psz_title
);
...
...
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