[cheese/wip/hans-fixes-master: 9/16] Simplify returned GstCaps



commit 8a8faca8d30a8043e5df931b6ab7d37266ea7c86
Author: Hans de Goede <hdegoede redhat com>
Date:   Mon Jun 10 20:25:44 2013 +0200

    Simplify returned GstCaps
    
    In cheese_camera_device_get_caps_for_format, simplify the returned caps.
    This results in much simpler caps, which as main advantage that they are
    way easier to read when trawling to debug logs.
    
    Signed-off-by: Hans de Goede <hdegoede redhat com>

 libcheese/cheese-camera-device.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libcheese/cheese-camera-device.c b/libcheese/cheese-camera-device.c
index d018078..343aab8 100644
--- a/libcheese/cheese-camera-device.c
+++ b/libcheese/cheese-camera-device.c
@@ -837,6 +837,7 @@ cheese_camera_device_get_caps_for_format (CheeseCameraDevice *device,
   }
 
   subset_caps = gst_caps_intersect (desired_caps, device->priv->caps);
+  subset_caps = gst_caps_simplify (subset_caps);
   gst_caps_unref (desired_caps);
 
   GST_INFO ("Got %" GST_PTR_FORMAT, subset_caps);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]