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
c88a5394
Commit
c88a5394
authored
Jul 23, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream_memory: remove peek callback
This is arguably the only case where the callback made sense.
parent
9efc85f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
src/input/stream_memory.c
src/input/stream_memory.c
+0
-10
No files found.
src/input/stream_memory.c
View file @
c88a5394
...
...
@@ -37,7 +37,6 @@ struct stream_sys_t
};
static
int
Read
(
stream_t
*
,
void
*
p_read
,
unsigned
int
i_read
);
static
int
Peek
(
stream_t
*
,
const
uint8_t
**
pp_peek
,
unsigned
int
i_read
);
static
int
Control
(
stream_t
*
,
int
i_query
,
va_list
);
static
void
Delete
(
stream_t
*
);
...
...
@@ -73,7 +72,6 @@ stream_t *stream_MemoryNew( vlc_object_t *p_this, uint8_t *p_buffer,
p_sys
->
i_preserve_memory
=
i_preserve_memory
;
s
->
pf_read
=
Read
;
s
->
pf_peek
=
Peek
;
s
->
pf_control
=
Control
;
s
->
pf_destroy
=
Delete
;
s
->
p_input
=
NULL
;
...
...
@@ -162,11 +160,3 @@ static int Read( stream_t *s, void *p_read, unsigned int i_read )
p_sys
->
i_pos
+=
i_res
;
return
i_res
;
}
static
int
Peek
(
stream_t
*
s
,
const
uint8_t
**
pp_peek
,
unsigned
int
i_read
)
{
stream_sys_t
*
p_sys
=
s
->
p_sys
;
int
i_res
=
__MIN
(
i_read
,
p_sys
->
i_size
-
p_sys
->
i_pos
);
*
pp_peek
=
p_sys
->
p_buffer
+
p_sys
->
i_pos
;
return
i_res
;
}
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