diff --git a/src/gst/gstpipewireformat.c b/src/gst/gstpipewireformat.c index 222bb9f20..2bd84bb38 100644 --- a/src/gst/gstpipewireformat.c +++ b/src/gst/gstpipewireformat.c @@ -858,6 +858,8 @@ gst_caps_from_format (const struct spa_pod *format) "stream-format", G_TYPE_STRING, "byte-stream", "alignment", G_TYPE_STRING, "au", NULL); + } else { + return NULL; } if ((prop = spa_pod_object_find_prop (obj, prop, SPA_FORMAT_VIDEO_size))) { handle_rect_prop (prop, "width", "height", res);