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
9f873743
Commit
9f873743
authored
Jul 24, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access: ACCESS_GET_SIZE return an error if size is unknown
parent
df3be99a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
modules/access/file.c
modules/access/file.c
+3
-2
modules/access/mms/mmsh.c
modules/access/mms/mmsh.c
+3
-1
No files found.
modules/access/file.c
View file @
9f873743
...
...
@@ -375,7 +375,8 @@ static int FileControl( access_t *p_access, int i_query, va_list args )
{
struct
stat
st
;
if
(
fstat
(
p_sys
->
fd
,
&
st
)
==
0
)
if
(
fstat
(
p_sys
->
fd
,
&
st
))
return
VLC_EGENERIC
;
p_sys
->
size
=
st
.
st_size
;
*
va_arg
(
args
,
uint64_t
*
)
=
p_sys
->
size
;
break
;
...
...
modules/access/mms/mmsh.c
View file @
9f873743
...
...
@@ -242,7 +242,9 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_GET_SIZE
:
{
uint64_t
*
s
=
va_arg
(
args
,
uint64_t
*
);
*
s
=
p_sys
->
b_broadcast
?
0
:
p_sys
->
asfh
.
i_file_size
;
if
(
p_sys
->
b_broadcast
)
return
VLC_EGENERIC
;
*
s
=
p_sys
->
asfh
.
i_file_size
;
return
VLC_SUCCESS
;
}
...
...
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