Commit d503f316 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Consider an empty boolean option as true

This ensures compatibility with the following example:
    <video width="320" height="240" controls>
parent 8752ca92
......@@ -59,7 +59,8 @@ VlcPluginBase::VlcPluginBase( NPP instance, NPuint16_t mode ) :
}
static bool boolValue(const char *value) {
return ( !strcmp(value, "1") ||
return ( *value == NULL ||
!strcmp(value, "1") ||
!strcasecmp(value, "true") ||
!strcasecmp(value, "yes") );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment