wcslen (varFriendlyName.bstrVal), NULL, NULL, NULL);
devidx++;
- GST_DEBUG ("Found device idx=%d: %s", devidx, friendly_name);
+ GST_DEBUG ("Found device idx=%d: device-name='%s'",
+ devidx, friendly_name);
if (!*device_name && devidx == *device_index) {
*device_name = g_strdup (friendly_name);
GstCaps *caps =
gst_dshowvideosrc_getcaps_from_streamcaps (src, capture_pin);
if (caps) {
+ GST_DEBUG_OBJECT (src, "Caps supported by device: %" GST_PTR_FORMAT, caps);
gst_caps_append (src->caps, caps);
} else {
caps = gst_dshowvideosrc_getcaps_from_enum_mediatypes (src, capture_pin);
- if (caps)
+ if (caps) {
+ GST_DEBUG_OBJECT (src, "Caps supported by device: %" GST_PTR_FORMAT, caps);
gst_caps_append (src->caps, caps);
+ }
}
}
}
gchar *caps_string = NULL;
gchar *src_caps_string = NULL;
+ GST_DEBUG_OBJECT (src, "Default: %dx%d@%d", pin_mediatype->defaultWidth, pin_mediatype->defaultHeight, pin_mediatype->defaultFPS);
+
/* retrieve the desired video size */
VIDEOINFOHEADER *video_info = NULL;
gint width = 0;