[vlc-commits] [Git][videolan/vlc][master] vlc_frame: use a const frame in vlc_frame_ChainProperties
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Nov 30 08:36:44 UTC 2022
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
7d914896 by Steve Lhomme at 2022-11-30T08:15:31+00:00
vlc_frame: use a const frame in vlc_frame_ChainProperties
We should not modify it in this getter.
- - - - -
1 changed file:
- include/vlc_frame.h
Changes:
=====================================
include/vlc_frame.h
=====================================
@@ -485,7 +485,7 @@ static size_t vlc_frame_ChainExtract( vlc_frame_t *p_list, void *p_data, size_t
* @param[out] pi_size Pointer to number of bytes in the chain (may be NULL)
* @param[out] pi_length Pointer to length (duration) of the chain (may be NULL)
*/
-static inline void vlc_frame_ChainProperties( vlc_frame_t *p_list, int *pi_count, size_t *pi_size, vlc_tick_t *pi_length )
+static inline void vlc_frame_ChainProperties( const vlc_frame_t *p_list, int *pi_count, size_t *pi_size, vlc_tick_t *pi_length )
{
size_t i_size = 0;
vlc_tick_t i_length = 0;
@@ -513,7 +513,7 @@ static inline void vlc_frame_ChainProperties( vlc_frame_t *p_list, int *pi_count
*
* All frames in the chain are gathered into a single vlc_frame_t and the
* original chain is released.
- *
+ *
* @param p_list Pointer to the first vlc_frame_t of the chain to gather
* @return Returns a pointer to a new vlc_frame_t or NULL if the frame can not
* be allocated, in which case the original chain is not released.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7d914896494b944ce3eb65371ccd3d83785a37e9
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7d914896494b944ce3eb65371ccd3d83785a37e9
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list