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
109c372a
Commit
109c372a
authored
Feb 25, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics (notify)
parent
dcd782bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
modules/misc/notify/notify.c
modules/misc/notify/notify.c
+8
-6
No files found.
modules/misc/notify/notify.c
View file @
109c372a
...
@@ -160,7 +160,8 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
...
@@ -160,7 +160,8 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
intf_thread_t
*
p_intf
=
param
;
intf_thread_t
*
p_intf
=
param
;
intf_sys_t
*
p_sys
=
p_intf
->
p_sys
;
intf_sys_t
*
p_sys
=
p_intf
->
p_sys
;
if
(
!
p_input
)
return
VLC_SUCCESS
;
if
(
!
p_input
)
return
VLC_SUCCESS
;
if
(
p_input
->
b_dead
)
if
(
p_input
->
b_dead
)
{
{
...
@@ -172,13 +173,14 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
...
@@ -172,13 +173,14 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
msleep
(
1000
*
4
);
msleep
(
1000
*
4
);
/* Playing something ... */
/* Playing something ... */
psz_artist
=
input_item_GetArtist
(
input_GetItem
(
p_input
)
);
input_item_t
*
p_input_item
=
input_GetItem
(
p_input
);
psz_album
=
input_item_GetAlbum
(
input_GetItem
(
p_input
)
)
;
psz_artist
=
input_item_GetArtist
(
p_input_item
);
psz_title
=
input_item_GetTitle
(
input_GetItem
(
p_input
)
);
psz_album
=
input_item_GetAlbum
(
p_input_item
);
psz_title
=
input_item_GetTitle
(
p_input_item
);
if
(
(
psz_title
==
NULL
)
||
EMPTY_STR
(
psz_title
)
)
if
(
(
psz_title
==
NULL
)
||
EMPTY_STR
(
psz_title
)
)
{
{
free
(
psz_title
);
free
(
psz_title
);
psz_title
=
input_item_GetName
(
input_GetItem
(
p_input
)
);
psz_title
=
input_item_GetName
(
p_input_item
);
}
}
if
(
(
psz_title
==
NULL
)
||
EMPTY_STR
(
psz_title
)
)
if
(
(
psz_title
==
NULL
)
||
EMPTY_STR
(
psz_title
)
)
{
/* Not enough metadata ... */
{
/* Not enough metadata ... */
...
@@ -217,7 +219,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
...
@@ -217,7 +219,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
GdkPixbuf
*
pix
=
NULL
;
GdkPixbuf
*
pix
=
NULL
;
GError
*
p_error
=
NULL
;
GError
*
p_error
=
NULL
;
psz_arturl
=
input_item_GetArtURL
(
input_GetItem
(
p_input
)
);
psz_arturl
=
input_item_GetArtURL
(
p_input_item
);
if
(
psz_arturl
&&
!
strncmp
(
psz_arturl
,
"file://"
,
7
)
&&
if
(
psz_arturl
&&
!
strncmp
(
psz_arturl
,
"file://"
,
7
)
&&
strlen
(
psz_arturl
)
>
7
)
strlen
(
psz_arturl
)
>
7
)
{
/* scale the art to show it in notify popup */
{
/* scale the art to show it in notify popup */
...
...
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