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:
Nirbheek Chauhan 2025-07-08 02:33:59 +05:30 committed by GStreamer Marge Bot
parent 3232e7a948
commit f08635d5fa

View File

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