gst-device-monitor: Fix caps filter splitting
max_tokens=-1 means we will split on `:` in the caps as well, for example caps features, and then discard those tokens. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9342>
This commit is contained in:
parent
3232e7a948
commit
f08635d5fa
@ -367,7 +367,7 @@ real_main (int argc, char **argv)
|
||||
/* process optional remaining arguments in the form
|
||||
* DEVICE_CLASSES or DEVICE_CLASSES:FILTER_CAPS */
|
||||
for (arg = args; arg != NULL && *arg != NULL; ++arg) {
|
||||
gchar **filters = g_strsplit (*arg, ":", -1);
|
||||
gchar **filters = g_strsplit (*arg, ":", 2);
|
||||
if (filters != NULL && filters[0] != NULL) {
|
||||
GstCaps *caps = NULL;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user