diff options
author | Stefan Kost <ensonic@users.sf.net> | 2009-02-25 11:41:36 +0200 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-02-25 11:41:36 +0200 |
commit | 518d98899e2ce4282334afde057240d2ddb2b398 (patch) | |
tree | cc22de8b180aa886b5d693893fc3e9b878469ac8 | |
parent | b2188c868576e0f330d15c7e030b2bc0c7a12048 (diff) | |
download | gstreamer-plugins-bad-518d98899e2ce4282334afde057240d2ddb2b398.tar.gz |
camerabin: update signal marshaller and docs
Use GString instead of GPointer for the marshaller as this is what the callback uses.
Slightly reformat docs.
-rw-r--r-- | gst/camerabin/gstcamerabin-marshal.list | 2 | ||||
-rw-r--r-- | 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 ef70f756b..40829e545 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 ee7191e9e..d3965bfc2 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 * - * <refsect2> - * <para> * 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. - * </para> + * * <informalfigure> * <mediaobject> * <imageobject><imagedata fileref="camerabin.png"/></imageobject> @@ -35,14 +33,12 @@ * <caption><para>Structural decomposition of CameraBin object.</para></caption> * </mediaobject> * </informalfigure> - * </refsect2> + * * <refsect2> * <title>Example launch line</title> - * <para> - * <programlisting> + * |[ * gst-launch -v -m camerabin filename=test.jpeg - * </programlisting> - * </para> + * ]| * </refsect2> * <refsect2> * <title>Image capture</title> @@ -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. - * </para> - * <para> + * * 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. - * </para> - * <para> + * * 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; |