/pidgin/main: 7ae670e19fb4: Add videoconvert into test video pip...

Jakub Adam jakub.adam at ktknet.cz
Wed Mar 30 19:25:28 EDT 2016


Changeset: 7ae670e19fb43902ed1f04f63e9a1512a15ff4a9
Author:	 Jakub Adam <jakub.adam at ktknet.cz>
Date:	 2016-03-21 14:05 +0100
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/7ae670e19fb4

Description:

Add videoconvert into test video pipeline

In case source and sink don't share a mutually understood colorspace
(e.g. v4l2src with YUY2 and ximagesink supporting only RGB).

Fixes not-negotiated errors when having such input/output combination
in the pipeline.

diffstat:

 pidgin/gtkprefs.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (23 lines):

diff --git a/pidgin/gtkprefs.c b/pidgin/gtkprefs.c
--- a/pidgin/gtkprefs.c
+++ b/pidgin/gtkprefs.c
@@ -3686,15 +3686,17 @@ create_video_pipeline(void)
 {
 	GstElement *pipeline;
 	GstElement *src, *sink;
+	GstElement *videoconvert;
 
 	pipeline = gst_pipeline_new("videotest");
 	src = create_test_element(PURPLE_MEDIA_ELEMENT_VIDEO | PURPLE_MEDIA_ELEMENT_SRC);
 	sink = create_test_element(PURPLE_MEDIA_ELEMENT_VIDEO | PURPLE_MEDIA_ELEMENT_SINK);
+	videoconvert = gst_element_factory_make("videoconvert", NULL);
 
 	g_object_set_data(G_OBJECT(pipeline), "sink", sink);
 
-	gst_bin_add_many(GST_BIN(pipeline), src, sink, NULL);
-	gst_element_link_many(src, sink, NULL);
+	gst_bin_add_many(GST_BIN(pipeline), src, videoconvert, sink, NULL);
+	gst_element_link_many(src, videoconvert, sink, NULL);
 
 	return pipeline;
 }



More information about the Commits mailing list