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
2724ab87
Commit
2724ab87
authored
Feb 24, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notify: use asprintf
parent
df01ece2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
modules/misc/notify/notify.c
modules/misc/notify/notify.c
+8
-7
No files found.
modules/misc/notify/notify.c
View file @
2724ab87
/*****************************************************************************
* notify.c : libnotify notification plugin
*****************************************************************************
* Copyright (C) 2006-200
7
the VideoLAN team
* Copyright (C) 2006-200
9
the VideoLAN team
* $Id$
*
* Authors: Christophe Mutricy <xtophe -at- videolan -dot- org>
...
...
@@ -70,7 +70,7 @@ vlc_module_begin ()
set_shortname
(
N_
(
"Notify"
)
)
set_description
(
N_
(
"LibNotify Notification Plugin"
)
)
add_integer
(
"notify-timeout"
,
4000
,
NULL
,
add_integer
(
"notify-timeout"
,
4000
,
NULL
,
TIMEOUT_TEXT
,
TIMEOUT_LONGTEXT
,
true
)
set_capability
(
"interface"
,
0
)
...
...
@@ -215,11 +215,12 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
}
else
/* else we show state-of-the art logo */
{
const
char
*
data_path
=
config_GetDataDir
();
char
buf
[
strlen
(
data_path
)
+
sizeof
(
"/vlc48x48.png"
)];
snprintf
(
buf
,
sizeof
(
buf
),
"%s/vlc48x48.png"
,
data_path
);
pix
=
gdk_pixbuf_new_from_file
(
buf
,
&
p_error
);
char
*
psz_pixbuf
;
if
(
asprintf
(
&
psz_pixbuf
,
"%s/vlc48x48.png"
,
config_GetDataDir
()
)
>=
0
)
{
pix
=
gdk_pixbuf_new_from_file
(
psz_pixbuf
,
&
p_error
);
free
(
psz_pixbuf
);
}
}
/* we need to replace '&' with '&' because '&' is a keyword of
...
...
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