Commit fd3e08b3 authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf

input/stream: make stream_ReadLine work with block-based streams

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.
Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <remi@remlab.net>
parent e604a3a2
......@@ -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 )
return NULL;
for( ;; )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment