Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
1a539b89
Commit
1a539b89
authored
Jul 20, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dummy stream_t.pf_block
parent
11edc20c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
20 deletions
+10
-20
src/input/demux.c
src/input/demux.c
+0
-1
src/input/input_internal.h
src/input/input_internal.h
+2
-2
src/input/mem_stream.c
src/input/mem_stream.c
+0
-1
src/input/stream.c
src/input/stream.c
+8
-16
No files found.
src/input/demux.c
View file @
1a539b89
...
...
@@ -312,7 +312,6 @@ stream_t *__stream_DemuxNew( vlc_object_t *p_obj, const char *psz_demux,
if
(
psz_demux
==
NULL
||
*
psz_demux
==
'\0'
)
return
NULL
;
s
=
vlc_stream_create
(
p_obj
);
s
->
pf_block
=
NULL
;
s
->
pf_read
=
DStreamRead
;
s
->
pf_peek
=
DStreamPeek
;
s
->
pf_control
=
DStreamControl
;
...
...
src/input/input_internal.h
View file @
1a539b89
...
...
@@ -353,7 +353,7 @@ static inline int demux2_Control( demux_t *p_demux, int i_query, ... )
}
#if defined(__PLUGIN__) || defined(__BUILTIN__)
# warning This is an internal header,
please don't rely on it
.
# warning This is an internal header,
something is wrong if you see this message
.
#else
/* Stream */
/**
...
...
@@ -363,7 +363,7 @@ struct stream_t
{
VLC_COMMON_MEMBERS
block_t
*
(
*
pf_block
)
(
stream_t
*
,
int
i_size
);
/*block_t *(*pf_block) ( stream_t *, int i_size );*/
int
(
*
pf_read
)
(
stream_t
*
,
void
*
p_read
,
int
i_read
);
int
(
*
pf_peek
)
(
stream_t
*
,
const
uint8_t
**
pp_peek
,
int
i_peek
);
int
(
*
pf_control
)(
stream_t
*
,
int
i_query
,
va_list
);
...
...
src/input/mem_stream.c
View file @
1a539b89
...
...
@@ -63,7 +63,6 @@ stream_t *__stream_MemoryNew( vlc_object_t *p_this, uint8_t *p_buffer,
p_sys
->
p_buffer
=
p_buffer
;
p_sys
->
i_preserve_memory
=
i_preserve_memory
;
s
->
pf_block
=
NULL
;
s
->
pf_read
=
Read
;
s
->
pf_peek
=
Peek
;
s
->
pf_control
=
Control
;
...
...
src/input/stream.c
View file @
1a539b89
...
...
@@ -232,7 +232,6 @@ stream_t *stream_AccessNew( access_t *p_access, vlc_bool_t b_quick )
/* Attach it now, needed for b_die */
vlc_object_attach
(
s
,
p_access
);
s
->
pf_block
=
NULL
;
s
->
pf_read
=
NULL
;
/* Set up later */
s
->
pf_peek
=
NULL
;
s
->
pf_control
=
AStreamControl
;
...
...
@@ -1883,12 +1882,6 @@ block_t *stream_Block( stream_t *s, int i_size )
{
if
(
i_size
<=
0
)
return
NULL
;
if
(
s
->
pf_block
)
{
return
s
->
pf_block
(
s
,
i_size
);
}
else
{
/* emulate block read */
block_t
*
p_bk
=
block_New
(
s
,
i_size
);
if
(
p_bk
)
...
...
@@ -1901,5 +1894,4 @@ block_t *stream_Block( stream_t *s, int i_size )
}
if
(
p_bk
)
block_Release
(
p_bk
);
return
NULL
;
}
}
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