From 6335307b9739beb568f986bfc8a4c1e1fb2b8e31 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 29 Jan 2009 10:10:08 +0200 Subject: Update and add documentation for platform specific plugins (sys). Link to properties. Correct titles for examples. Fix examples. --- sys/ximage/gstximagesrc.c | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'sys/ximage') diff --git a/sys/ximage/gstximagesrc.c b/sys/ximage/gstximagesrc.c index 5f02b958..15288122 100644 --- a/sys/ximage/gstximagesrc.c +++ b/sys/ximage/gstximagesrc.c @@ -20,23 +20,18 @@ /** * SECTION:element-ximagesrc - * @short_description: a source that captures your X Display * - * - * * This element captures your X Display and creates raw RGB video. It uses * the XDamage extension if available to only capture areas of the screen that * have changed since the last frame. It uses the XFixes extension if * available to also capture your mouse pointer. By default it will fixate to * 25 frames per second. - * + * + * * Example pipelines - * - * - * gst-launch -v ximagesrc ! video/x-raw-rgb,framerate=5/1 ! ffmpegcolorspace ! theoraenc ! oggmux ! filesink location=desktop.ogg - * - * Encodes your X display to an Ogg theora video at 5 frames per second. - * + * |[ + * gst-launch ximagesrc ! video/x-raw-rgb,framerate=5/1 ! ffmpegcolorspace ! theoraenc ! oggmux ! filesink location=desktop.ogg + * ]| Encodes your X display to an Ogg theora video at 5 frames per second. * */ @@ -941,12 +936,14 @@ gst_ximage_src_get_caps (GstBaseSrc * bs) gint x, y, width, height; if ((!s->xcontext) && (!gst_ximage_src_open_display (s, s->display_name))) - return gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_SRC (s)-> - srcpad)); + return + gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_SRC + (s)->srcpad)); if (!gst_ximage_src_recalc (s)) - return gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_SRC (s)-> - srcpad)); + return + gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_SRC + (s)->srcpad)); xcontext = s->xcontext; -- cgit