Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
93acbebb
Commit
93acbebb
authored
Jan 16, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Privatized p_input->i_time.
parent
6a4e86ff
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
include/vlc_input.h
include/vlc_input.h
+0
-1
src/input/input.c
src/input/input.c
+3
-3
src/input/input_internal.h
src/input/input_internal.h
+2
-1
src/text/strings.c
src/text/strings.c
+5
-4
No files found.
include/vlc_input.h
View file @
93acbebb
...
...
@@ -413,7 +413,6 @@ struct input_thread_t
int
i_state
;
bool
b_can_pace_control
;
int64_t
i_time
;
/* Current time */
/* All other data is input_thread is PRIVATE. You can't access it
* outside of src/input */
...
...
src/input/input.c
View file @
93acbebb
...
...
@@ -167,7 +167,7 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
p_input
->
b_eof
=
false
;
p_input
->
b_can_pace_control
=
true
;
p_input
->
p
->
i_start
=
0
;
p_input
->
i_time
=
0
;
p_input
->
p
->
i_time
=
0
;
p_input
->
p
->
i_stop
=
0
;
p_input
->
p
->
i_run
=
0
;
p_input
->
p
->
i_title
=
0
;
...
...
@@ -568,7 +568,7 @@ static void MainLoopDemux( input_thread_t *p_input, bool *pb_changed, mtime_t *p
*
pb_changed
=
false
;
if
(
(
p_input
->
p
->
i_stop
>
0
&&
p_input
->
i_time
>=
p_input
->
p
->
i_stop
)
||
if
(
(
p_input
->
p
->
i_stop
>
0
&&
p_input
->
p
->
i_time
>=
p_input
->
p
->
i_stop
)
||
(
p_input
->
p
->
i_run
>
0
&&
*
pi_start_mdate
+
p_input
->
p
->
i_run
<
mdate
()
)
)
i_ret
=
0
;
/* EOF */
else
...
...
@@ -682,7 +682,7 @@ static void MainLoopInterface( input_thread_t *p_input )
if
(
demux_Control
(
p_input
->
p
->
input
.
p_demux
,
DEMUX_GET_TIME
,
&
i_time
)
)
i_time
=
0
;
p_input
->
i_time
=
i_time
;
p_input
->
p
->
i_time
=
i_time
;
if
(
demux_Control
(
p_input
->
p
->
input
.
p_demux
,
DEMUX_GET_LENGTH
,
&
i_length
)
)
...
...
src/input/input_internal.h
View file @
93acbebb
...
...
@@ -87,10 +87,11 @@ struct input_thread_private_t
int
i_rate
;
bool
b_recording
;
/* Playtime configuration */
/* Playtime configuration
and state
*/
int64_t
i_start
;
/* :start-time,0 by default */
int64_t
i_stop
;
/* :stop-time, 0 if none */
int64_t
i_run
;
/* :run-time, 0 if none */
int64_t
i_time
;
/* Current time */
/* Title infos FIXME multi-input (not easy) ? */
int
i_title
;
...
...
src/text/strings.c
View file @
93acbebb
...
...
@@ -870,7 +870,7 @@ char *__str_format_meta( vlc_object_t *p_object, const char *string )
if
(
p_item
&&
p_input
)
{
mtime_t
i_duration
=
input_item_GetDuration
(
p_item
);
int64_t
i_time
=
p_input
->
i_time
;
int64_t
i_time
=
var_GetInteger
(
p_input
,
"time"
)
;
sprintf
(
buf
,
"%02d:%02d:%02d"
,
(
int
)(
(
i_duration
-
i_time
)
/
3600000000
),
(
int
)(
(
(
i_duration
-
i_time
)
/
60000000
)
%
60
),
...
...
@@ -938,10 +938,11 @@ char *__str_format_meta( vlc_object_t *p_object, const char *string )
case
'T'
:
if
(
p_input
)
{
int64_t
i_time
=
var_GetInteger
(
p_input
,
"time"
);
sprintf
(
buf
,
"%02d:%02d:%02d"
,
(
int
)(
p_input
->
i_time
/
(
3600000000
)
),
(
int
)(
(
p_input
->
i_time
/
(
60000000
)
)
%
60
),
(
int
)(
(
p_input
->
i_time
/
1000000
)
%
60
)
);
(
int
)(
i_time
/
(
3600000000
)
),
(
int
)(
(
i_time
/
(
60000000
)
)
%
60
),
(
int
)(
(
i_time
/
1000000
)
%
60
)
);
}
else
{
...
...
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