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
028552b9
Commit
028552b9
authored
Mar 03, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* input.c: add Duration to input infos.
parent
aa793fae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/input/input.c
src/input/input.c
+8
-1
No files found.
src/input/input.c
View file @
028552b9
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* decoders.
* decoders.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-2004 VideoLAN
* Copyright (C) 1998-2004 VideoLAN
* $Id: input.c,v 1.29
0 2004/02/16 17:14:15 zorglub
Exp $
* $Id: input.c,v 1.29
1 2004/03/03 11:59:41 fenrir
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -887,6 +887,7 @@ static int InitThread( input_thread_t * p_input )
...
@@ -887,6 +887,7 @@ static int InitThread( input_thread_t * p_input )
/* get length */
/* get length */
if
(
!
demux_Control
(
p_input
,
DEMUX_GET_LENGTH
,
&
i_length
)
&&
i_length
>
0
)
if
(
!
demux_Control
(
p_input
,
DEMUX_GET_LENGTH
,
&
i_length
)
&&
i_length
>
0
)
{
{
input_info_category_t
*
p_cat
=
input_InfoCategory
(
p_input
,
_
(
"File"
)
);
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_input
,
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_input
,
VLC_OBJECT_PLAYLIST
,
VLC_OBJECT_PLAYLIST
,
FIND_PARENT
);
FIND_PARENT
);
...
@@ -897,6 +898,12 @@ static int InitThread( input_thread_t * p_input )
...
@@ -897,6 +898,12 @@ static int InitThread( input_thread_t * p_input )
var_Set
(
p_playlist
,
"item-change"
,
val
);
var_Set
(
p_playlist
,
"item-change"
,
val
);
vlc_object_release
(
p_playlist
);
vlc_object_release
(
p_playlist
);
}
}
if
(
p_cat
)
{
char
psz_buffer
[
MSTRTIME_MAX_SIZE
];
input_AddInfo
(
p_cat
,
_
(
"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