mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
validate: media-descriptor: Fix reading seekable record
Casting the result of g_strmp0 to boolean won't make gboolean value 0 or 1. We need proper 0 and 1 so we can use == comparision.
This commit is contained in:
parent
8d477c6d93
commit
e25a6aaf78
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ deserialize_filenode (FileNode * filenode,
|
|||
else if (g_strcmp0 (names[i], "duration") == 0)
|
||||
filenode->duration = g_ascii_strtoull (values[i], NULL, 0);
|
||||
else if (g_strcmp0 (names[i], "seekable") == 0)
|
||||
filenode->seekable = (gboolean) g_strcmp0 (values[i], "false");
|
||||
filenode->seekable = (g_strcmp0 (values[i], "true") == 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue