mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
videotimecode: Allow deserializing invalid timecodes
Timecode strings don't contain a framerate and that has to be provided first separately before it can be converted into a valid timecode.
This commit is contained in:
parent
615fa4790f
commit
be516c2fbd
1 changed files with 2 additions and 1 deletions
|
@ -670,8 +670,9 @@ gst_video_time_code_deserialize (GValue * dest, const gchar * tc_str)
|
|||
{
|
||||
GstVideoTimeCode *tc = gst_video_time_code_new_from_string (tc_str);
|
||||
|
||||
if (tc == NULL || !gst_video_time_code_is_valid (tc))
|
||||
if (tc == NULL) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
g_value_take_boxed (dest, tc);
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue