diff options
Diffstat (limited to 'src/mediactl.c')
-rw-r--r-- | src/mediactl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mediactl.c b/src/mediactl.c index c854357..b22fbdf 100644 --- a/src/mediactl.c +++ b/src/mediactl.c @@ -541,9 +541,9 @@ struct media_pad *media_parse_pad(struct media_device *media, for (; isspace(*p); ++p); - if (*p == '"') { - for (end = (char *)p + 1; *end && *end != '"'; ++end); - if (*end != '"') { + if (*p == '"' || *p == '\'') { + for (end = (char *)p + 1; *end && *end != '"' && *end != '\''; ++end); + if (*end != '"' && *end != '\'') { media_dbg(media, "missing matching '\"'\n"); *endp = end; return NULL; |