Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
videometa: Don't crash if adding the timecode meta to a buffer failed
  • Loading branch information
sdroege committed Jul 24, 2017
1 parent 075dac4 commit 7942441
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gst-libs/gst/video/gstvideometa.c
Expand Up @@ -980,6 +980,8 @@ gst_buffer_add_video_time_code_meta_full (GstBuffer * buffer, guint fps_n,

meta = (GstVideoTimeCodeMeta *) gst_buffer_add_meta (buffer,
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,
hours, minutes, seconds, frames, field_count);

Expand Down

0 comments on commit 7942441

Please sign in to comment.