Blame SOURCES/0013-cheese-camera-device-get_caps_for_format-simplify-th.patch

ecdf9b
From af213c390521acf0c73a440a8f0ccf42e7393195 Mon Sep 17 00:00:00 2001
ecdf9b
From: Hans de Goede <hdegoede@redhat.com>
ecdf9b
Date: Mon, 10 Jun 2013 20:25:44 +0200
ecdf9b
Subject: [PATCH 13/35] cheese-camera-device: get_caps_for_format: simplify the
ecdf9b
 returned caps
ecdf9b
ecdf9b
This results in much simpler caps, which as main advantage that they are
ecdf9b
way easier to read when trawling to debug logs.
ecdf9b
ecdf9b
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
ecdf9b
---
ecdf9b
 libcheese/cheese-camera-device.c | 1 +
ecdf9b
 1 file changed, 1 insertion(+)
ecdf9b
ecdf9b
diff --git a/libcheese/cheese-camera-device.c b/libcheese/cheese-camera-device.c
ecdf9b
index 273d530..c23069d 100644
ecdf9b
--- a/libcheese/cheese-camera-device.c
ecdf9b
+++ b/libcheese/cheese-camera-device.c
ecdf9b
@@ -1004,6 +1004,7 @@ cheese_camera_device_get_caps_for_format (CheeseCameraDevice *device,
ecdf9b
   }
ecdf9b
 
ecdf9b
   subset_caps = gst_caps_intersect (desired_caps, device->priv->caps);
ecdf9b
+  subset_caps = gst_caps_simplify (subset_caps);
ecdf9b
   gst_caps_unref (desired_caps);
ecdf9b
 
ecdf9b
   GST_INFO ("Got %" GST_PTR_FORMAT, subset_caps);
ecdf9b
-- 
ecdf9b
1.8.2.1
ecdf9b