Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
61ee17a8
Commit
61ee17a8
authored
Jun 01, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: Listen to duration changed events, and remove a vout->playlist dependency.
parent
9ff2a688
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
src/input/input.c
src/input/input.c
+0
-8
src/playlist/item.c
src/playlist/item.c
+11
-3
No files found.
src/input/input.c
View file @
61ee17a8
...
...
@@ -2162,14 +2162,6 @@ static int UpdateFromAccess( input_thread_t *p_input )
static
void
UpdateItemLength
(
input_thread_t
*
p_input
,
int64_t
i_length
)
{
input_item_SetDuration
(
p_input
->
p
->
input
.
p_item
,
(
mtime_t
)
i_length
);
if
(
!
p_input
->
b_preparsing
)
{
pl_Yield
(
p_input
);
var_SetInteger
(
libvlc_priv
(
p_input
->
p_libvlc
)
->
p_playlist
,
"item-change"
,
p_input
->
p
->
input
.
p_item
->
i_id
);
pl_Release
(
p_input
);
}
}
/*****************************************************************************
...
...
src/playlist/item.c
View file @
61ee17a8
...
...
@@ -107,9 +107,9 @@ static void input_item_subitem_added( const vlc_event_t * p_event,
}
/*****************************************************************************
* An input item's meta has changed (Event Callback)
* An input item's meta
or duration
has changed (Event Callback)
*****************************************************************************/
static
void
input_item_
meta_
changed
(
const
vlc_event_t
*
p_event
,
static
void
input_item_changed
(
const
vlc_event_t
*
p_event
,
void
*
user_data
)
{
playlist_item_t
*
p_item
=
user_data
;
...
...
@@ -126,6 +126,10 @@ static void install_input_item_observer( playlist_item_t * p_item )
vlc_InputItemSubItemAdded
,
input_item_subitem_added
,
p_item
);
vlc_event_attach
(
&
p_item
->
p_input
->
event_manager
,
vlc_InputItemDurationChanged
,
input_item_meta_changed
,
p_item
);
vlc_event_attach
(
&
p_item
->
p_input
->
event_manager
,
vlc_InputItemMetaChanged
,
input_item_meta_changed
,
...
...
@@ -138,6 +142,10 @@ static void uninstall_input_item_observer( playlist_item_t * p_item )
vlc_InputItemMetaChanged
,
input_item_meta_changed
,
p_item
);
vlc_event_detach
(
&
p_item
->
p_input
->
event_manager
,
vlc_InputItemDurationChanged
,
input_item_meta_changed
,
p_item
);
vlc_event_detach
(
&
p_item
->
p_input
->
event_manager
,
vlc_InputItemSubItemAdded
,
input_item_subitem_added
,
...
...
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