summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2009-07-20 16:24:05 +0300
committerStefan Kost <ensonic@users.sf.net>2009-07-20 16:42:44 +0300
commita80921e334bd5c0d245d2cf27b3acd27b27876f6 (patch)
treef842ee68c8f4c2cc0e7cc4e7edd5611485ff08a5
parent64457575e7e096c02784aa207e92b2b2599fc13a (diff)
downloadgst-plugins-bad-a80921e334bd5c0d245d2cf27b3acd27b27876f6.tar.gz
gst-plugins-bad-a80921e334bd5c0d245d2cf27b3acd27b27876f6.tar.bz2
gst-plugins-bad-a80921e334bd5c0d245d2cf27b3acd27b27876f6.zip
camerabin: log formats in preview image conversion
-rw-r--r--gst/camerabin/camerabinpreview.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/camerabin/camerabinpreview.c b/gst/camerabin/camerabinpreview.c
index 9b12bbac..b8e53389 100644
--- a/gst/camerabin/camerabinpreview.c
+++ b/gst/camerabin/camerabinpreview.c
@@ -95,6 +95,8 @@ gst_camerabin_preview_create_pipeline (GstCameraBin * camera)
gst_bin_add_many (GST_BIN (camera->preview_pipeline),
src, csp, filter, vscale, sink, NULL);
+ GST_DEBUG ("preview format is: %" GST_PTR_FORMAT, camera->preview_caps);
+
g_object_set (filter, "caps", camera->preview_caps, NULL);
g_object_set (sink, "preroll-queue-len", 1, "signal-handoffs", TRUE, NULL);
g_object_set (vscale, "method", 0, NULL);
@@ -195,7 +197,8 @@ gst_camerabin_preview_convert (GstCameraBin * camera, GstBuffer * buf)
bflags = GST_BUFFER_FLAGS (buf);
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_READONLY);
- GST_DEBUG ("running conversion pipeline");
+ GST_DEBUG ("running conversion pipeline, source is: %" GST_PTR_FORMAT,
+ GST_BUFFER_CAPS (buf));
gst_element_set_state (camera->preview_pipeline, GST_STATE_PLAYING);
g_signal_emit_by_name (src, "push-buffer", buf, &fret);