Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
87d07ba3
Commit
87d07ba3
authored
Jun 23, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream: fix arguments mismatch
parent
eac682f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
src/input/stream.c
src/input/stream.c
+18
-5
No files found.
src/input/stream.c
View file @
87d07ba3
...
...
@@ -195,8 +195,21 @@ static int AReadStream( stream_t *s, void *p_read, unsigned int i_read );
static
input_item_t
*
AStreamReadDir
(
stream_t
*
s
);
/* Common */
static
int
AStreamGenericError
(
)
{
return
VLC_EGENERIC
;
}
static
input_item_t
*
AStreamDirGenericError
(
)
{
return
NULL
;
}
static
int
AStreamReadError
(
stream_t
*
s
,
void
*
p_read
,
unsigned
int
i_read
)
{
(
void
)
s
;
(
void
)
p_read
;
(
void
)
i_read
;
return
VLC_EGENERIC
;
}
static
int
AStreamPeekError
(
stream_t
*
s
,
const
uint8_t
**
pp_peek
,
unsigned
int
i_read
)
{
(
void
)
s
;
(
void
)
pp_peek
;
(
void
)
i_read
;
return
VLC_EGENERIC
;
}
static
input_item_t
*
AStreamReadDirError
(
stream_t
*
s
)
{
(
void
)
s
;
return
NULL
;
}
static
int
AStreamControl
(
stream_t
*
s
,
int
i_query
,
va_list
);
static
void
AStreamDestroy
(
stream_t
*
s
);
static
int
ASeek
(
stream_t
*
s
,
uint64_t
i_pos
);
...
...
@@ -284,9 +297,9 @@ stream_t *stream_AccessNew( access_t *p_access, char **ppsz_list )
return
NULL
;
}
s
->
pf_read
=
AStream
Generic
Error
;
/* Replaced later */
s
->
pf_peek
=
AStream
GenericError
;
s
->
pf_readdir
=
AStream
DirGenericError
;
s
->
pf_read
=
AStream
Read
Error
;
/* Replaced later */
s
->
pf_peek
=
AStream
PeekError
;
/* Replaced later */
s
->
pf_readdir
=
AStream
ReadDirError
;
/* Replaced later */
s
->
pf_control
=
AStreamControl
;
s
->
pf_destroy
=
AStreamDestroy
;
...
...
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