mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
splitmuxsink: Post error when requested timecode interval is invalid
In case we cannot rely on max-size-timecode for split decision, post error instead of crashing
This commit is contained in:
parent
981d0c02de
commit
fe73c3b0f3
1 changed files with 5 additions and 0 deletions
|
@ -1293,6 +1293,11 @@ calculate_next_max_timecode (GstSplitMuxSink * splitmux,
|
||||||
return GST_CLOCK_TIME_NONE;
|
return GST_CLOCK_TIME_NONE;
|
||||||
|
|
||||||
target_tc = gst_video_time_code_add_interval (cur_tc, splitmux->tc_interval);
|
target_tc = gst_video_time_code_add_interval (cur_tc, splitmux->tc_interval);
|
||||||
|
if (!target_tc) {
|
||||||
|
GST_ELEMENT_ERROR (splitmux,
|
||||||
|
STREAM, FAILED, (NULL), ("Couldn't calculate target timecode"));
|
||||||
|
return GST_CLOCK_TIME_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
/* Convert to ns */
|
/* Convert to ns */
|
||||||
target_tc_time = gst_video_time_code_nsec_since_daily_jam (target_tc);
|
target_tc_time = gst_video_time_code_nsec_since_daily_jam (target_tc);
|
||||||
|
|
Loading…
Reference in a new issue