summaryrefslogtreecommitdiffstats
path: root/sys/ximage
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2009-01-29 10:10:08 +0200
committerStefan Kost <ensonic@users.sf.net>2009-01-29 10:12:43 +0200
commit6335307b9739beb568f986bfc8a4c1e1fb2b8e31 (patch)
tree9b0187c295a459d31b016e15295131b912a57535 /sys/ximage
parentbdb07d50bef697c10658dce14f0e5c879a10fc44 (diff)
Update and add documentation for platform specific plugins (sys).
Link to properties. Correct titles for examples. Fix examples.
Diffstat (limited to 'sys/ximage')
-rw-r--r--sys/ximage/gstximagesrc.c25
1 files changed, 11 insertions, 14 deletions
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
*
- * <refsect2>
- * <para>
* 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.
- * </para>
+ *
+ * <refsect2>
* <title>Example pipelines</title>
- * <para>
- * <programlisting>
- * gst-launch -v ximagesrc ! video/x-raw-rgb,framerate=5/1 ! ffmpegcolorspace ! theoraenc ! oggmux ! filesink location=desktop.ogg
- * </programlisting>
- * Encodes your X display to an Ogg theora video at 5 frames per second.
- * </para>
+ * |[
+ * 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.
* </refsect2>
*/
@@ -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;