validate: tools: media-info: Fixes in the media file descriptor parsing code

We used to always fail when the user was passing something not NULL as err
This commit is contained in:
Thibault Saunier 2014-01-08 09:44:02 +01:00
parent e9b2967504
commit 7d0a6efaff

View file

@ -177,13 +177,13 @@ gst_validate_media_info_load (const gchar * path, GError ** err)
gst_validate_media_info_init (mi);
mi->uri = g_key_file_get_string (kf, "file-info", "uri", err);
if (err)
if (err && *err)
goto end;
mi->file_size = g_key_file_get_uint64 (kf, "file-info", "file-size", err);
if (err)
if (err && *err)
goto end;
mi->duration = g_key_file_get_uint64 (kf, "media-info", "duration", NULL);
mi->duration = g_key_file_get_uint64 (kf, "media-info", "file-duration", NULL);
mi->seekable = g_key_file_get_boolean (kf, "media-info", "seekable", NULL);
str = g_key_file_get_string (kf, "media-info", "caps", NULL);