mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
KeyFileFormatter: Handle return value of gst_value_deserialize()
This commit is contained in:
parent
d5622071f5
commit
8927e8d72e
1 changed files with 3 additions and 2 deletions
|
@ -193,6 +193,7 @@ create_track (GKeyFile * kf, gchar * group, GESTimeline * timeline)
|
|||
GESTrack *track;
|
||||
GstCaps *caps;
|
||||
gchar *caps_field, *type_field;
|
||||
gboolean res;
|
||||
GValue v = { 0 };
|
||||
|
||||
if (!(caps_field = g_key_file_get_string (kf, group, "caps", NULL)))
|
||||
|
@ -205,10 +206,10 @@ create_track (GKeyFile * kf, gchar * group, GESTimeline * timeline)
|
|||
return FALSE;
|
||||
|
||||
g_value_init (&v, GES_TYPE_TRACK_TYPE);
|
||||
gst_value_deserialize (&v, type_field);
|
||||
res = gst_value_deserialize (&v, type_field);
|
||||
g_free (type_field);
|
||||
|
||||
if (!caps)
|
||||
if (!caps || !res)
|
||||
return FALSE;
|
||||
|
||||
track = ges_track_new (g_value_get_flags (&v), caps);
|
||||
|
|
Loading…
Reference in a new issue