mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
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:
parent
e9b2967504
commit
7d0a6efaff
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue