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
eb88f342
Commit
eb88f342
authored
Feb 27, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control/media_instance.c: Properly unregister the callbacks.
parent
292040d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
src/control/media_instance.c
src/control/media_instance.c
+17
-3
No files found.
src/control/media_instance.c
View file @
eb88f342
...
@@ -33,6 +33,14 @@ input_state_changed( vlc_object_t * p_this, char const * psz_cmd,
...
@@ -33,6 +33,14 @@ input_state_changed( vlc_object_t * p_this, char const * psz_cmd,
vlc_value_t
oldval
,
vlc_value_t
newval
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_userdata
);
void
*
p_userdata
);
static
int
static
int
input_seekable_changed
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_userdata
);
static
int
input_pausable_changed
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_userdata
);
static
int
input_position_changed
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
input_position_changed
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_userdata
);
void
*
p_userdata
);
...
@@ -83,8 +91,8 @@ static void release_input_thread( libvlc_media_instance_t *p_mi )
...
@@ -83,8 +91,8 @@ static void release_input_thread( libvlc_media_instance_t *p_mi )
if
(
p_mi
->
b_own_its_input_thread
)
if
(
p_mi
->
b_own_its_input_thread
)
{
{
var_DelCallback
(
p_input_thread
,
"state"
,
input_state_changed
,
p_mi
);
var_DelCallback
(
p_input_thread
,
"state"
,
input_state_changed
,
p_mi
);
var_DelCallback
(
p_input_thread
,
"seekable"
,
input_s
tat
e_changed
,
p_mi
);
var_DelCallback
(
p_input_thread
,
"seekable"
,
input_s
eekabl
e_changed
,
p_mi
);
var_DelCallback
(
p_input_thread
,
"pausable"
,
input_
stat
e_changed
,
p_mi
);
var_DelCallback
(
p_input_thread
,
"pausable"
,
input_
pausabl
e_changed
,
p_mi
);
var_DelCallback
(
p_input_thread
,
"intf-change"
,
input_position_changed
,
p_mi
);
var_DelCallback
(
p_input_thread
,
"intf-change"
,
input_position_changed
,
p_mi
);
var_DelCallback
(
p_input_thread
,
"intf-change"
,
input_time_changed
,
p_mi
);
var_DelCallback
(
p_input_thread
,
"intf-change"
,
input_time_changed
,
p_mi
);
...
@@ -144,6 +152,8 @@ input_state_changed( vlc_object_t * p_this, char const * psz_cmd,
...
@@ -144,6 +152,8 @@ input_state_changed( vlc_object_t * p_this, char const * psz_cmd,
void
*
p_userdata
)
void
*
p_userdata
)
{
{
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
p_this
);
VLC_UNUSED
(
psz_cmd
);
libvlc_media_instance_t
*
p_mi
=
p_userdata
;
libvlc_media_instance_t
*
p_mi
=
p_userdata
;
libvlc_event_t
event
;
libvlc_event_t
event
;
libvlc_event_type_t
type
=
newval
.
i_int
;
libvlc_event_type_t
type
=
newval
.
i_int
;
...
@@ -175,11 +185,13 @@ input_state_changed( vlc_object_t * p_this, char const * psz_cmd,
...
@@ -175,11 +185,13 @@ input_state_changed( vlc_object_t * p_this, char const * psz_cmd,
}
}
static
int
static
int
input_se
a
kable_changed
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
input_se
e
kable_changed
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_userdata
)
void
*
p_userdata
)
{
{
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
p_this
);
VLC_UNUSED
(
psz_cmd
);
libvlc_media_instance_t
*
p_mi
=
p_userdata
;
libvlc_media_instance_t
*
p_mi
=
p_userdata
;
libvlc_event_t
event
;
libvlc_event_t
event
;
...
@@ -197,6 +209,8 @@ input_pausable_changed( vlc_object_t * p_this, char const * psz_cmd,
...
@@ -197,6 +209,8 @@ input_pausable_changed( vlc_object_t * p_this, char const * psz_cmd,
void
*
p_userdata
)
void
*
p_userdata
)
{
{
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
p_this
);
VLC_UNUSED
(
psz_cmd
);
libvlc_media_instance_t
*
p_mi
=
p_userdata
;
libvlc_media_instance_t
*
p_mi
=
p_userdata
;
libvlc_event_t
event
;
libvlc_event_t
event
;
...
...
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