mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
client-source: handle NULL filter
This commit is contained in:
parent
ba15f1f977
commit
1e4e4ef185
1 changed files with 7 additions and 3 deletions
|
|
@ -151,9 +151,13 @@ client_get_formats (PinosSource *source,
|
|||
GstCaps *caps, *cfilter;
|
||||
gchar *str;
|
||||
|
||||
cfilter = gst_caps_from_string (g_bytes_get_data (filter, NULL));
|
||||
if (cfilter == NULL)
|
||||
return NULL;
|
||||
if (filter) {
|
||||
cfilter = gst_caps_from_string (g_bytes_get_data (filter, NULL));
|
||||
if (cfilter == NULL)
|
||||
return NULL;
|
||||
} else {
|
||||
cfilter = NULL;
|
||||
}
|
||||
|
||||
caps = collect_caps (source, cfilter);
|
||||
if (caps == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue