summaryrefslogtreecommitdiffstats
path: root/examples/switch
diff options
context:
space:
mode:
Diffstat (limited to 'examples/switch')
-rw-r--r--examples/switch/switcher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/switch/switcher.c b/examples/switch/switcher.c
index 6296f6ad..92bf501e 100644
--- a/examples/switch/switcher.c
+++ b/examples/switch/switcher.c
@@ -77,7 +77,7 @@ main (int argc, char *argv[])
src2 = gst_element_factory_make ("videotestsrc", "src2");
g_object_set (G_OBJECT (src2), "pattern", 1, NULL);
video_switch = gst_element_factory_make ("switch", "video_switch");
- video_sink = gst_element_factory_make ("ximagesink", "video_sink");
+ video_sink = gst_element_factory_make (DEFAULT_VIDEOSINK, "video_sink");
gst_bin_add_many (GST_BIN (pipeline), src1, src2, video_switch,
video_sink, NULL);