[vlc-devel] [PATCH 15/24] [block_helper] Fix prototype to be more const

Laurent Aimar fenrir at via.ecp.fr
Sat Nov 1 16:52:15 CET 2008


On Thu, Oct 30, 2008, davidf+nntp at woaf.net wrote:
> diff --git a/include/vlc_block_helper.h b/include/vlc_block_helper.h
> index 4660f95..376c2b4 100644
> --- a/include/vlc_block_helper.h
> +++ b/include/vlc_block_helper.h
> @@ -439,7 +439,7 @@ static inline int block_PeekOffsetBytes( block_bytestream_t *p_bytestream,
>  
>  static inline int block_FindStartcodeFromOffset(
>      block_bytestream_t *p_bytestream, size_t *pi_offset,
> -    uint8_t *p_startcode, int i_startcode_length )
> +    const uint8_t *p_startcode, int i_startcode_length )
>  {
>      block_t *p_block, *p_block_backup = 0;
>      int i_size = 0;
 This path is fine and should be applied.

-- 
fenrir



More information about the vlc-devel mailing list