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
bdca92f3
Commit
bdca92f3
authored
Apr 22, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MSN notify: simplification
parent
c7014883
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
modules/misc/notify/msn.c
modules/misc/notify/msn.c
+5
-11
No files found.
modules/misc/notify/msn.c
View file @
bdca92f3
...
...
@@ -32,10 +32,8 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_interface.h>
#include <vlc_meta.h>
#include <vlc_playlist.h>
#include <vlc_strings.h>
#include <vlc_charset.h>
#include <vlc_playlist.h>
/* playlist_t */
#include <vlc_charset.h>
/* ToWide */
/*****************************************************************************
* intf_sys_t: description and status of log interface
...
...
@@ -96,11 +94,9 @@ static int Open( vlc_object_t *p_this )
p_intf
->
p_sys
->
psz_format
=
var_InheritString
(
p_intf
,
"msn-format"
);
if
(
!
p_intf
->
p_sys
->
psz_format
)
{
msg_Dbg
(
p_intf
,
"no format provided"
);
p_intf
->
p_sys
->
psz_format
=
strdup
(
FORMAT_DEFAULT
);
}
msg_Dbg
(
p_intf
,
"using format: %s"
,
p_intf
->
p_sys
->
psz_format
);
msg_Dbg
(
p_intf
,
"using
MSN
format: %s"
,
p_intf
->
p_sys
->
psz_format
);
p_playlist
=
pl_Get
(
p_intf
);
var_AddCallback
(
p_playlist
,
"item-change"
,
ItemChange
,
p_intf
);
...
...
@@ -154,16 +150,14 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
char
*
psz_artist
=
input_item_GetArtist
(
input_GetItem
(
p_input
)
);
char
*
psz_album
=
input_item_GetAlbum
(
input_GetItem
(
p_input
)
);
char
*
psz_title
=
input_item_GetTitleFbName
(
input_GetItem
(
p_input
)
);
char
*
psz_buf
=
str_format_meta
(
p_intf
,
p_intf
->
p_sys
->
psz_format
);
snprintf
(
psz_tmp
,
MSN_MAX_LENGTH
,
"
\\
0Music
\\
01
\\
0%s
\\
0%s
\\
0%s
\\
0%s
\\
0
\\
0
\\
0"
,
p
sz_buf
,
p
_intf
->
p_sys
->
psz_format
,
psz_artist
?
psz_artist
:
""
,
psz_title
?
psz_title
:
""
,
psz_album
);
free
(
psz_buf
);
free
(
psz_title
);
free
(
psz_artist
);
free
(
psz_album
);
...
...
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