Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
cbbe174a
Commit
cbbe174a
authored
Aug 08, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control/media_instance.c: Listen to the variable changes.
parent
fa2c1699
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/control/media_instance.c
src/control/media_instance.c
+3
-1
No files found.
src/control/media_instance.c
View file @
cbbe174a
...
...
@@ -166,7 +166,7 @@ libvlc_media_instance_new( libvlc_instance_t * p_libvlc_instance,
free
(
p_mi
);
return
NULL
;
}
libvlc_event_manager_register_event_type
(
p_mi
->
p_event_manager
,
libvlc_MediaInstanceReachedEnd
,
p_e
);
...
...
@@ -395,6 +395,8 @@ void libvlc_media_instance_play( libvlc_media_instance_t *p_mi,
p_mi
->
p_md
->
p_input_item
);
p_mi
->
i_input_id
=
p_input_thread
->
i_object_id
;
var_AddCallback
(
p_input_thread
,
"state"
,
input_state_changed
,
p_mi
);
/* will be released in media_instance_release() */
vlc_object_yield
(
p_input_thread
);
...
...
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