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:
Nicolas Dufresne 2015-07-31 10:49:00 -04:00
parent 8d477c6d93
commit e25a6aaf78

View file

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