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
41683dae
Commit
41683dae
authored
Jul 24, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream: allow STREAM_GET_SIZE to fail
parent
ea01e45f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
include/vlc_stream.h
include/vlc_stream.h
+4
-2
No files found.
include/vlc_stream.h
View file @
41683dae
...
@@ -89,7 +89,7 @@ enum stream_query_e
...
@@ -89,7 +89,7 @@ enum stream_query_e
STREAM_SET_POSITION
,
/**< arg1= uint64_t res=can fail */
STREAM_SET_POSITION
,
/**< arg1= uint64_t res=can fail */
STREAM_GET_POSITION
,
/**< arg1= uint64_t * res=cannot fail*/
STREAM_GET_POSITION
,
/**< arg1= uint64_t * res=cannot fail*/
STREAM_GET_SIZE
,
/**< arg1= uint64_t * res=can
not fail (0 if no sense)
*/
STREAM_GET_SIZE
,
/**< arg1= uint64_t * res=can
fail
*/
/* */
/* */
STREAM_GET_PTS_DELAY
=
0x101
,
/**< arg1= int64_t* res=cannot fail */
STREAM_GET_PTS_DELAY
=
0x101
,
/**< arg1= int64_t* res=cannot fail */
...
@@ -139,7 +139,9 @@ static inline int64_t stream_Tell( stream_t *s )
...
@@ -139,7 +139,9 @@ static inline int64_t stream_Tell( stream_t *s )
static
inline
int64_t
stream_Size
(
stream_t
*
s
)
static
inline
int64_t
stream_Size
(
stream_t
*
s
)
{
{
uint64_t
i_pos
;
uint64_t
i_pos
;
stream_Control
(
s
,
STREAM_GET_SIZE
,
&
i_pos
);
if
(
stream_Control
(
s
,
STREAM_GET_SIZE
,
&
i_pos
)
)
i_pos
=
0
;
if
(
i_pos
>>
62
)
if
(
i_pos
>>
62
)
return
(
int64_t
)
1
<<
62
;
return
(
int64_t
)
1
<<
62
;
return
i_pos
;
return
i_pos
;
...
...
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