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
98220f2b
Commit
98220f2b
authored
Jan 03, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audioscrobbler: use pl_CurrentInput()
parent
4e684f13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
modules/misc/audioscrobbler.c
modules/misc/audioscrobbler.c
+5
-11
No files found.
modules/misc/audioscrobbler.c
View file @
98220f2b
...
...
@@ -157,16 +157,13 @@ static void DeleteSong(audioscrobbler_song_t* p_song)
*****************************************************************************/
static
void
ReadMetaData
(
intf_thread_t
*
p_this
)
{
input_thread_t
*
p_input
;
input_item_t
*
p_item
;
intf_sys_t
*
p_sys
=
p_this
->
p_sys
;
intf_sys_t
*
p_sys
=
p_this
->
p_sys
;
p_input
=
playlist_CurrentInput
(
pl_Get
(
p_this
));
input_thread_t
*
p_input
=
pl_CurrentInput
(
p_this
);
if
(
!
p_input
)
return
;
p_item
=
input_GetItem
(
p_input
);
input_item_t
*
p_item
=
input_GetItem
(
p_input
);
if
(
!
p_item
)
{
vlc_object_release
(
p_input
);
...
...
@@ -357,10 +354,8 @@ static int PlayingChange(vlc_object_t *p_this, const char *psz_var,
static
int
ItemChange
(
vlc_object_t
*
p_this
,
const
char
*
psz_var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
input_thread_t
*
p_input
;
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_data
;
intf_sys_t
*
p_sys
=
p_intf
->
p_sys
;
input_item_t
*
p_item
;
VLC_UNUSED
(
p_this
);
VLC_UNUSED
(
psz_var
);
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
newval
);
...
...
@@ -369,12 +364,11 @@ static int ItemChange(vlc_object_t *p_this, const char *psz_var,
p_sys
->
b_meta_read
=
false
;
p_sys
->
b_submit
=
false
;
p_input
=
playlist_CurrentInput
(
pl_Get
(
p_intf
));
input_thread_t
*
p_input
=
pl_CurrentInput
(
p_intf
);
if
(
!
p_input
||
p_input
->
b_dead
)
return
VLC_SUCCESS
;
p_item
=
input_GetItem
(
p_input
);
input_item_t
*
p_item
=
input_GetItem
(
p_input
);
if
(
!
p_item
)
{
vlc_object_release
(
p_input
);
...
...
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