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
3c5f6d9e
Commit
3c5f6d9e
authored
Jun 14, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: Listen to vlc_InputSelectedStreamChanged events.
parent
e9fba763
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
src/playlist/engine.c
src/playlist/engine.c
+15
-0
No files found.
src/playlist/engine.c
View file @
3c5f6d9e
...
@@ -211,6 +211,17 @@ static void input_state_changed( const vlc_event_t * event, void * data )
...
@@ -211,6 +211,17 @@ static void input_state_changed( const vlc_event_t * event, void * data )
playlist_Signal
(
p_playlist
);
playlist_Signal
(
p_playlist
);
}
}
/* Input Callback */
static
void
input_selected_stream_changed
(
const
vlc_event_t
*
event
,
void
*
data
)
{
(
void
)
event
;
playlist_t
*
p_playlist
=
data
;
PL_LOCK
;
p_playlist
->
gc_date
=
mdate
();
vlc_object_signal_unlocked
(
p_playlist
);
PL_UNLOCK
;
}
/* Internals */
/* Internals */
void
playlist_release_current_input
(
playlist_t
*
p_playlist
)
void
playlist_release_current_input
(
playlist_t
*
p_playlist
)
{
{
...
@@ -223,6 +234,8 @@ void playlist_release_current_input( playlist_t * p_playlist )
...
@@ -223,6 +234,8 @@ void playlist_release_current_input( playlist_t * p_playlist )
vlc_event_detach
(
p_em
,
vlc_InputStateChanged
,
vlc_event_detach
(
p_em
,
vlc_InputStateChanged
,
input_state_changed
,
p_playlist
);
input_state_changed
,
p_playlist
);
vlc_event_detach
(
p_em
,
vlc_InputSelectedStreamChanged
,
input_selected_stream_changed
,
p_playlist
);
p_playlist
->
p_input
=
NULL
;
p_playlist
->
p_input
=
NULL
;
/* Release the playlist lock, because we may get stuck
/* Release the playlist lock, because we may get stuck
...
@@ -246,6 +259,8 @@ void playlist_set_current_input(
...
@@ -246,6 +259,8 @@ void playlist_set_current_input(
vlc_event_manager_t
*
p_em
=
input_get_event_manager
(
p_input
);
vlc_event_manager_t
*
p_em
=
input_get_event_manager
(
p_input
);
vlc_event_attach
(
p_em
,
vlc_InputStateChanged
,
vlc_event_attach
(
p_em
,
vlc_InputStateChanged
,
input_state_changed
,
p_playlist
);
input_state_changed
,
p_playlist
);
vlc_event_attach
(
p_em
,
vlc_InputSelectedStreamChanged
,
input_selected_stream_changed
,
p_playlist
);
}
}
}
}
...
...
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