Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
0984909d
Commit
0984909d
authored
Dec 15, 2005
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/control/core.c: fix start-time handling in start + coding style fixes
parent
06ecc0b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
src/control/core.c
src/control/core.c
+13
-6
No files found.
src/control/core.c
View file @
0984909d
...
...
@@ -195,16 +195,23 @@ mediacontrol_start( mediacontrol_Instance *self,
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
if
(
p_playlist
->
i_size
)
{
int
i_
from
;
char
*
psz_from
=
(
char
*
)
malloc
(
20
*
sizeof
(
char
))
;
playlist_item_t
*
p_item
=
*
(
p_playlist
->
pp_items
);
int
i_
index
;
int
i_from
;
char
*
psz_from
=
(
char
*
)
malloc
(
20
*
sizeof
(
char
)
);
i_from
=
mediacontrol_position2microsecond
(
p_playlist
->
p_input
,
a_position
)
/
1000000
;
i_index
=
p_playlist
->
i_index
;
if
(
i_index
<
0
)
{
/* We know that there is at least 1 element, since i_size != 0 */
i_index
=
0
;
}
/* Set start time */
snprintf
(
psz_from
,
20
,
"start-time=%i"
,
i_from
);
playlist_ItemAddOption
(
p_
item
,
psz_from
);
free
(
psz_from
);
snprintf
(
psz_from
,
20
,
"start-time=%i"
,
i_from
);
playlist_ItemAddOption
(
p_
playlist
->
pp_items
[
i_index
],
psz_from
);
free
(
psz_from
);
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
...
...
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