Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
95d5c47c
Commit
95d5c47c
authored
Apr 01, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ts: fix warning
parent
f4fafb0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
modules/demux/ts.c
modules/demux/ts.c
+5
-1
No files found.
modules/demux/ts.c
View file @
95d5c47c
...
@@ -1017,7 +1017,11 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -1017,7 +1017,11 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
if
(
!
DVBEventInformation
(
p_demux
,
&
i_time
,
&
i_length
)
&&
i_length
>
0
)
if
(
!
DVBEventInformation
(
p_demux
,
&
i_time
,
&
i_length
)
&&
i_length
>
0
)
*
pf
=
(
double
)
i_time
/
(
double
)
i_length
;
*
pf
=
(
double
)
i_time
/
(
double
)
i_length
;
else
if
(
(
i64
=
stream_Size
(
p_demux
->
s
)
)
>
0
)
else
if
(
(
i64
=
stream_Size
(
p_demux
->
s
)
)
>
0
)
*
pf
=
(
double
)
stream_Tell
(
p_demux
->
s
)
/
(
double
)
i64
;
{
int64_t
offset
=
stream_Tell
(
p_demux
->
s
);
*
pf
=
(
double
)
offset
/
(
double
)
i64
;
}
else
else
*
pf
=
0
.
0
;
*
pf
=
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