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:
Sebastian Dröge 2018-12-14 21:18:34 +02:00 committed by Mathieu Duponchelle
parent 615fa4790f
commit be516c2fbd

View file

@ -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;