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
fc6d8a2c
Commit
fc6d8a2c
authored
Jun 05, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* input: compute right value for position/time on position-offset and
time-offset change.
parent
df3ce87c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/input/input.c
src/input/input.c
+7
-0
No files found.
src/input/input.c
View file @
fc6d8a2c
...
...
@@ -1434,6 +1434,7 @@ static int PositionCallback( vlc_object_t *p_this, char const *psz_cmd,
newval
.
f_float
+=
val
.
f_float
;
}
var_Change
(
p_input
,
"position"
,
VLC_VAR_SETVALUE
,
&
newval
,
NULL
);
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
p_input
->
stream
.
p_selected_area
->
i_seek
=
...
...
@@ -1465,11 +1466,17 @@ static int TimeCallback( vlc_object_t *p_this, char const *psz_cmd,
val
.
f_float
=
(
double
)
newval
.
i_time
/
(
double
)
val
.
i_time
;
if
(
!
strcmp
(
psz_cmd
,
"time-offset"
)
)
{
vlc_value_t
t
;
var_Set
(
p_input
,
"position-offset"
,
val
);
var_Get
(
p_input
,
"time"
,
&
t
);
t
.
i_time
+=
newval
.
i_time
;
var_Change
(
p_input
,
"time"
,
VLC_VAR_SETVALUE
,
&
t
,
NULL
);
}
else
{
var_Set
(
p_input
,
"position"
,
val
);
var_Change
(
p_input
,
"time"
,
VLC_VAR_SETVALUE
,
&
newval
,
NULL
);
}
}
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