summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2016-02-28 10:12:36 +0100
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2016-02-28 11:52:14 -0500
commitd089cd5a12bfd4bdf9a95650d6a7428c3dff69c7 (patch)
tree3d169c8a09a80805efa675b27b188a4ea0bd50d6
parenta4d64b5caa3fac5223e58b6d791fbd6fbe44ff72 (diff)
downloadgstreamer-plugins-good-d089cd5a12bfd4bdf9a95650d6a7428c3dff69c7.tar.gz
alpha: Fix sample pipeline
Use the zorder pad property to make sure the semitransparent video is on top of the background. https://bugzilla.gnome.org/show_bug.cgi?id=762809
-rw-r--r--gst/alpha/gstalpha.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gst/alpha/gstalpha.c b/gst/alpha/gstalpha.c
index 736f3778e..839b8db23 100644
--- a/gst/alpha/gstalpha.c
+++ b/gst/alpha/gstalpha.c
@@ -30,12 +30,13 @@
*
* Sample pipeline:
* |[
- * gst-launch-1.0 videotestsrc pattern=smpte75 ! alpha method=green ! \
- * videomixer name=mixer ! videoconvert ! autovideosink \
- * videotestsrc pattern=snow ! mixer.
+ * gst-launch-1.0 videotestsrc pattern=snow ! mixer.sink_0 \
+ * videotestsrc pattern=smpte75 ! alpha method=green ! mixer.sink_1 \
+ * videomixer name=mixer sink_0::zorder=0 sink_1::zorder=1 ! \
+ * videoconvert ! autovideosink
* ]| This pipeline adds a alpha channel to the SMPTE color bars
- * with green as the transparent color and mixes the output with
- * a snow video stream.
+ * with green as the transparent color and overlays the output on
+ * top of a snow video stream.
*/