[vlc-devel] [RFC PATCH] input/stream: make stream_ReadLine work with block-based streams
filip at atch.se
Fri Jul 22 03:00:53 CEST 2016
The if-statement in question prevents stream_ReadLine to work if invoked
with a block-based stream, as such the condition has now been altered to
only return immediately if the source stream does not have neither of
pf_read and pf_block.
An alternative patch would be to remove the check all-together.
- What do you guys think?
src/input/stream.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/input/stream.c b/src/input/stream.c
index 8a1027f..e34c674 100644
@@ -147,7 +147,7 @@ char *vlc_stream_ReadLine( stream_t *s )
int i_line = 0, i_read = 0;
/* Let's fail quickly if this is a readdir access */
- if( s->pf_read == NULL )
+ if( s->pf_read == NULL && s->pf_block == NULL )
for( ;; )
More information about the vlc-devel