ekiga r7064 - trunk/lib/engine/components/gstreamer



Author: jpuydt
Date: Tue Sep 23 05:51:58 2008
New Revision: 7064
URL: http://svn.gnome.org/viewvc/ekiga?rev=7064&view=rev

Log:
Made the AVC devices mostly work

Modified:
   trunk/lib/engine/components/gstreamer/gst-videoinput.cpp

Modified: trunk/lib/engine/components/gstreamer/gst-videoinput.cpp
==============================================================================
--- trunk/lib/engine/components/gstreamer/gst-videoinput.cpp	(original)
+++ trunk/lib/engine/components/gstreamer/gst-videoinput.cpp	Tue Sep 23 05:51:58 2008
@@ -117,6 +117,7 @@
 			     " name=ekiga_sink",
 			     devices_by_name[current_state.device.name].c_str (),
 			     width, height);//, fps);
+  g_print ("Pipeline: %s\n", command);
   pipeline = gst_parse_launch (command, &error);
 
   if (error == NULL) {
@@ -287,6 +288,12 @@
   bool problem = false;
   GstElement* elt = NULL;
 
+  elt = gst_element_factory_make ("videoscale", "videoscalepresencetest");
+  if (elt == NULL)
+    problem = true;
+  else
+    gst_object_unref (elt);
+
   elt = gst_element_factory_make ("decodebin", "decodebinpresencetest");
   if (elt == NULL)
     problem = true;
@@ -325,6 +332,7 @@
 	g_object_get (G_OBJECT (elt), "device-name", &name, NULL);
 	descr = g_strdup_printf ("dv1394src guid=%Ld"
 				 " ! decodebin"
+				 " ! videoscale"
 				 " ! ffmpegcolorspace",
 				 g_value_get_uint64 (guid));
 	devices_by_name[name] = descr;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]