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
d4f1f65d
Commit
d4f1f65d
authored
Sep 17, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't delete callbacks from an already destroyed objects
Make sure we remove the callback before quitting
parent
59d5c69e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
modules/misc/audioscrobbler.c
modules/misc/audioscrobbler.c
+15
-16
No files found.
modules/misc/audioscrobbler.c
View file @
d4f1f65d
...
...
@@ -250,16 +250,25 @@ error:
*****************************************************************************/
static
void
Close
(
vlc_object_t
*
p_this
)
{
intf_thread_t
*
p_intf
;
intf_sys_t
*
p_sys
;
audioscrobbler_queue_t
*
p_current_queue
,
*
p_next_queue
;
playlist_t
*
p_playlis
t
;
p_intf
=
(
intf_thread_t
*
)
p_thi
s
;
p
_sys
=
p_intf
->
p_sys
;
input_thread_t
*
p_inpu
t
;
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
intf_sys_t
*
p_sys
=
p_intf
->
p_sy
s
;
p
laylist_t
*
p_playlist
=
pl_Yield
(
p_intf
)
;
p_playlist
=
pl_Yield
(
p_intf
);
var_DelCallback
(
p_playlist
,
"playlist-current"
,
ItemChange
,
p_intf
);
PL_LOCK
;
p_input
=
p_playlist
->
p_input
;
if
(
p_input
)
vlc_object_yield
(
p_input
);
PL_UNLOCK
;
if
(
p_input
)
{
var_DelCallback
(
p_input
,
"state"
,
PlayingChange
,
p_intf
);
}
pl_Release
(
p_playlist
);
vlc_mutex_lock
(
&
p_sys
->
lock
);
...
...
@@ -573,16 +582,6 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
p_intf
=
(
intf_thread_t
*
)
p_data
;
p_sys
=
p_intf
->
p_sys
;
vlc_mutex_lock
(
&
p_sys
->
lock
);
if
(
p_sys
->
p_input
)
{
/* we delete the callback for the old p_input */
var_DelCallback
(
p_sys
->
p_input
,
"state"
,
PlayingChange
,
p_intf
);
}
vlc_mutex_unlock
(
&
p_sys
->
lock
);
p_playlist
=
pl_Yield
(
p_intf
);
PL_LOCK
;
p_input
=
p_playlist
->
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