summaryrefslogtreecommitdiffstats
path: root/gst/camerabin/camerabinimage.c
diff options
context:
space:
mode:
authorLasse Laukkanen <ext-lasse.2.laukkanen@nokia.com>2009-05-12 12:49:33 +0300
committerStefan Kost <ensonic@users.sf.net>2009-06-05 15:51:31 +0300
commit683b72a5fe0c26178855840cc1d0097df5389cc7 (patch)
tree153c5000f526f45725008abe84cd6f462817bef6 /gst/camerabin/camerabinimage.c
parent430f34352212dc0954d6c6801244f38e17d24177 (diff)
downloadgst-plugins-bad-683b72a5fe0c26178855840cc1d0097df5389cc7.tar.gz
gst-plugins-bad-683b72a5fe0c26178855840cc1d0097df5389cc7.tar.bz2
gst-plugins-bad-683b72a5fe0c26178855840cc1d0097df5389cc7.zip
camerabin: add debug including dot graph writing
Diffstat (limited to 'gst/camerabin/camerabinimage.c')
-rw-r--r--gst/camerabin/camerabinimage.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gst/camerabin/camerabinimage.c b/gst/camerabin/camerabinimage.c
index e4ff6b86..7c29922c 100644
--- a/gst/camerabin/camerabinimage.c
+++ b/gst/camerabin/camerabinimage.c
@@ -196,6 +196,7 @@ gst_camerabin_image_change_state (GstElement * element,
{
GstStateChangeReturn ret = GST_STATE_CHANGE_SUCCESS;
GstCameraBinImage *img = GST_CAMERABIN_IMAGE (element);
+ GstObject *camerabin = NULL;
switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:
@@ -221,6 +222,14 @@ gst_camerabin_image_change_state (GstElement * element,
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
switch (transition) {
+ case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
+ camerabin = gst_element_get_parent (img);
+ /* Write debug graph to file */
+ GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS (GST_BIN (camerabin),
+ GST_DEBUG_GRAPH_SHOW_MEDIA_TYPE |
+ GST_DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS, "imagebin.playing");
+ gst_object_unref (camerabin);
+ break;
case GST_STATE_CHANGE_READY_TO_NULL:
gst_camerabin_image_destroy_elements (img);
break;
@@ -530,6 +539,7 @@ gst_camerabin_image_destroy_elements (GstCameraBinImage * img)
void
gst_camerabin_image_set_encoder (GstCameraBinImage * img, GstElement * encoder)
{
+ GST_DEBUG ("setting encoder %" GST_PTR_FORMAT, encoder);
if (img->user_enc)
gst_object_unref (img->user_enc);
if (encoder)
@@ -542,6 +552,7 @@ void
gst_camerabin_image_set_postproc (GstCameraBinImage * img,
GstElement * postproc)
{
+ GST_DEBUG ("setting post processing element %" GST_PTR_FORMAT, postproc);
if (img->post)
gst_object_unref (img->post);
if (postproc)