[vlc-commits] vlc_block: constify
Francois Cartegnie
git at videolan.org
Fri Dec 21 11:09:04 CET 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Dec 21 10:55:19 2018 +0100| [0d114ca24754695cce3912f9e2bc6a6cff08f2a3] | committer: Francois Cartegnie
vlc_block: constify
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d114ca24754695cce3912f9e2bc6a6cff08f2a3
---
include/vlc_block.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/vlc_block.h b/include/vlc_block.h
index e54cc52e35..62756edf3e 100644
--- a/include/vlc_block.h
+++ b/include/vlc_block.h
@@ -201,7 +201,7 @@ VLC_API block_t *block_Realloc(block_t *, ssize_t pre, size_t body) VLC_USED;
*/
VLC_API void block_Release(block_t *block);
-static inline void block_CopyProperties( block_t *dst, block_t *src )
+static inline void block_CopyProperties( block_t *dst, const block_t *src )
{
dst->i_flags = src->i_flags;
dst->i_nb_samples = src->i_nb_samples;
@@ -218,7 +218,7 @@ static inline void block_CopyProperties( block_t *dst, block_t *src )
* @return the duplicate on success, NULL on error.
*/
VLC_USED
-static inline block_t *block_Duplicate( block_t *p_block )
+static inline block_t *block_Duplicate( const block_t *p_block )
{
block_t *p_dup = block_Alloc( p_block->i_buffer );
if( p_dup == NULL )
More information about the vlc-commits
mailing list