From 518d98899e2ce4282334afde057240d2ddb2b398 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 25 Feb 2009 11:41:36 +0200 Subject: [PATCH] camerabin: update signal marshaller and docs Use GString instead of GPointer for the marshaller as this is what the callback uses. Slightly reformat docs. --- gst/camerabin/gstcamerabin-marshal.list | 2 +- gst/camerabin/gstcamerabin.c | 24 +++++++++--------------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/gst/camerabin/gstcamerabin-marshal.list b/gst/camerabin/gstcamerabin-marshal.list index ef70f75..40829e5 100644 --- a/gst/camerabin/gstcamerabin-marshal.list +++ b/gst/camerabin/gstcamerabin-marshal.list @@ -3,4 +3,4 @@ VOID:INT,INT,INT,INT VOID:INT,INT - +BOOLEAN:STRING diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c index ee7191e..d3965bf 100644 --- a/gst/camerabin/gstcamerabin.c +++ b/gst/camerabin/gstcamerabin.c @@ -19,15 +19,13 @@ */ /** - * SECTION:gstcamerabin + * SECTION:element-camerabin * @short_description: camera capture bin * - * - * * GstCameraBin is a high-level camera object that encapsulates the gstreamer * internals and provides a task based API for the application. It consists of * three main data paths: view-finder, image capture and video capture. - * + * * * * @@ -35,14 +33,12 @@ * Structural decomposition of CameraBin object. * * - * + * * * Example launch line - * - * + * |[ * gst-launch -v -m camerabin filename=test.jpeg - * - * + * ]| * * * Image capture @@ -53,8 +49,7 @@ * shot) or stop capturing. The last captured image is shown * until one switches back to view finder using #GstCameraBin::user-stop action * signal. - * - * + * * Available resolutions can be taken from the #GstCameraBin:inputcaps property. * Image capture resolution can be set with #GstCameraBin::user-image-res * action signal. @@ -66,8 +61,7 @@ * Video capture is started with the #GstCameraBin::user-start action signal too. * In addition to image capture one can use #GstCameraBin::user-pause to * pause recording and #GstCameraBin::user-stop to end recording. - * - * + * * Available resolutions and fps can be taken from the #GstCameraBin:inputcaps * property. #GstCameraBin::user-res-fps action signal can be used to set frame * rate and resolution for the video recording and view finder as well. @@ -2309,8 +2303,8 @@ gst_camerabin_class_init (GstCameraBinClass * klass) camerabin_signals[IMG_DONE_SIGNAL] = g_signal_new ("img-done", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstCameraBinClass, img_done), - g_signal_accumulator_true_handled, NULL, gst_marshal_BOOLEAN__POINTER, - G_TYPE_BOOLEAN, 1, G_TYPE_POINTER); + g_signal_accumulator_true_handled, NULL, + gst_camerabin_marshal_BOOLEAN__STRING, G_TYPE_BOOLEAN, 1, G_TYPE_GSTRING); klass->user_start = gst_camerabin_user_start; klass->user_stop = gst_camerabin_user_stop; -- 2.7.4