mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
videometa: Don't crash if adding the timecode meta to a buffer failed
This commit is contained in:
parent
075dac486f
commit
79424411e7
1 changed files with 2 additions and 0 deletions
|
@ -980,6 +980,8 @@ gst_buffer_add_video_time_code_meta_full (GstBuffer * buffer, guint fps_n,
|
||||||
|
|
||||||
meta = (GstVideoTimeCodeMeta *) gst_buffer_add_meta (buffer,
|
meta = (GstVideoTimeCodeMeta *) gst_buffer_add_meta (buffer,
|
||||||
GST_VIDEO_TIME_CODE_META_INFO, NULL);
|
GST_VIDEO_TIME_CODE_META_INFO, NULL);
|
||||||
|
g_return_val_if_fail (meta != NULL, NULL);
|
||||||
|
|
||||||
gst_video_time_code_init (&meta->tc, fps_n, fps_d, latest_daily_jam, flags,
|
gst_video_time_code_init (&meta->tc, fps_n, fps_d, latest_daily_jam, flags,
|
||||||
hours, minutes, seconds, frames, field_count);
|
hours, minutes, seconds, frames, field_count);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue