[vlc-devel] [PATCH] demux/adaptive: clear BLOCK_FLAG_HEADER flag properly

Zhao Zhili wantlamy at gmail.com
Wed Jul 5 14:13:09 CEST 2017


Hi Francois,

On Wed, Jul 5, 2017 at 4:25 PM, Francois Cartegnie <fcvlcdev at free.fr> wrote:

> Le 05/07/2017 à 05:46, Zhao Zhili a écrit :
> > @@ -95,7 +95,7 @@ block_t * AbstractChunk::doRead(size_t size, bool
> b_block)
> >              block->i_flags |= BLOCK_FLAG_HEADER;
> >          bytesRead += block->i_buffer;
> >          onDownload(&block);
> > -        block->i_flags ^= BLOCK_FLAG_HEADER;
> > +        block->i_flags &= ~BLOCK_FLAG_HEADER;
> >      }
>
> Since that the only flag, that's already cleared.
>
>
Sorry, I don't understand. If block->i_flags is 0 before this line, it will
set the flag. Isn't it mean to clear the flag?



> Francois
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170705/ee263a57/attachment.html>


More information about the vlc-devel mailing list