videometa: constify tc argument to add_video_time_meta()

We don't modify the argument.
This commit is contained in:
Matthew Waters 2020-03-16 15:32:47 +11:00
parent 7b00e5de99
commit a777fe2628
2 changed files with 3 additions and 2 deletions

View file

@ -1151,7 +1151,8 @@ gst_video_time_code_meta_get_info (void)
* Since: 1.10
*/
GstVideoTimeCodeMeta *
gst_buffer_add_video_time_code_meta (GstBuffer * buffer, GstVideoTimeCode * tc)
gst_buffer_add_video_time_code_meta (GstBuffer * buffer,
const GstVideoTimeCode * tc)
{
if (!gst_video_time_code_is_valid (tc))
return NULL;

View file

@ -397,7 +397,7 @@ const GstMetaInfo *gst_video_time_code_meta_get_info (void);
GST_VIDEO_API
GstVideoTimeCodeMeta *gst_buffer_add_video_time_code_meta (GstBuffer * buffer,
GstVideoTimeCode * tc);
const GstVideoTimeCode* tc);
GST_VIDEO_API
GstVideoTimeCodeMeta *