Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
f9e71c88
Commit
f9e71c88
authored
Dec 09, 2004
by
sigmunau
Browse files
input/input.c: trigger a update in playlist window when the duration changes
parent
f8ad9847
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/input/input.c
View file @
f9e71c88
...
...
@@ -36,7 +36,7 @@
#include "input_internal.h"
#include "stream_output.h"
#include "vlc_playlist.h"
#include "vlc_interface.h"
/*****************************************************************************
...
...
@@ -1684,11 +1684,17 @@ static int UpdateMeta( input_thread_t *p_input )
*****************************************************************************/
static
void
UpdateItemLength
(
input_thread_t
*
p_input
,
int64_t
i_length
)
{
playlist_t
*
p_playlist
;
char
psz_buffer
[
MSTRTIME_MAX_SIZE
];
vlc_mutex_lock
(
&
p_input
->
input
.
p_item
->
lock
);
p_input
->
input
.
p_item
->
i_duration
=
i_length
;
vlc_mutex_unlock
(
&
p_input
->
input
.
p_item
->
lock
);
p_playlist
=
vlc_object_find
(
p_input
,
VLC_OBJECT_PLAYLIST
,
FIND_PARENT
);
var_SetInteger
(
p_playlist
,
"item-change"
,
p_input
->
input
.
p_item
->
i_id
);
vlc_object_release
(
p_playlist
);
input_Control
(
p_input
,
INPUT_ADD_INFO
,
_
(
"General"
),
_
(
"Duration"
),
msecstotimestr
(
psz_buffer
,
i_length
/
1000
)
);
...
...
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