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
606a09d2
Commit
606a09d2
authored
Aug 21, 2012
by
Samuel Pitoiset
Committed by
Jean-Baptiste Kempf
Feb 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avi: Fix seek bar position when streaming through network (fixes #2151)
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
6b2d303b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
19 deletions
+2
-19
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+2
-19
No files found.
modules/demux/avi/avi.c
View file @
606a09d2
...
@@ -1405,25 +1405,8 @@ static double ControlGetPosition( demux_t *p_demux )
...
@@ -1405,25 +1405,8 @@ static double ControlGetPosition( demux_t *p_demux )
}
}
else
if
(
stream_Size
(
p_demux
->
s
)
>
0
)
else
if
(
stream_Size
(
p_demux
->
s
)
>
0
)
{
{
unsigned
int
i
;
double
i64
=
(
uint64_t
)
stream_Tell
(
p_demux
->
s
);
int64_t
i_tmp
;
return
i64
/
stream_Size
(
p_demux
->
s
);
int64_t
i64
=
0
;
/* search the more advanced selected es */
for
(
i
=
0
;
i
<
p_sys
->
i_track
;
i
++
)
{
avi_track_t
*
tk
=
p_sys
->
track
[
i
];
if
(
tk
->
b_activated
&&
tk
->
i_idxposc
<
tk
->
idx
.
i_size
)
{
i_tmp
=
tk
->
idx
.
p_entry
[
tk
->
i_idxposc
].
i_pos
+
tk
->
idx
.
p_entry
[
tk
->
i_idxposc
].
i_length
+
8
;
if
(
i_tmp
>
i64
)
{
i64
=
i_tmp
;
}
}
}
return
(
double
)
i64
/
stream_Size
(
p_demux
->
s
);
}
}
return
0
.
0
;
return
0
.
0
;
}
}
...
...
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