client-source: handle NULL filter

This commit is contained in:
Wim Taymans 2015-07-09 17:58:40 +02:00
parent ba15f1f977
commit 1e4e4ef185

View file

@ -151,9 +151,13 @@ client_get_formats (PinosSource *source,
GstCaps *caps, *cfilter; GstCaps *caps, *cfilter;
gchar *str; gchar *str;
cfilter = gst_caps_from_string (g_bytes_get_data (filter, NULL)); if (filter) {
if (cfilter == NULL) cfilter = gst_caps_from_string (g_bytes_get_data (filter, NULL));
return NULL; if (cfilter == NULL)
return NULL;
} else {
cfilter = NULL;
}
caps = collect_caps (source, cfilter); caps = collect_caps (source, cfilter);
if (caps == NULL) if (caps == NULL)