Blame SOURCES/cheese-3.22.1-fix-device-commandline.patch

d40835
From c8c75796ff3e723d77bd68dec3fe91a072b36fc4 Mon Sep 17 00:00:00 2001
d40835
From: Benjamin Berg <bberg@redhat.com>
d40835
Date: Fri, 21 Apr 2017 11:59:39 +0200
d40835
Subject: [PATCH 01/27] Correctly select the given camera device
d40835
d40835
Due to a bug in the VAPI file the code would pass a string to the camera
d40835
setup routine instead of a CameraDevice object. As the setup routine
d40835
already has code to automatically select an appropriate device based on
d40835
the name passing an argument is not even required.
d40835
d40835
Note that the --device parameter might be somewhat confusing as it
d40835
refers to the devices name and not to the /dev/videoX device file.
d40835
d40835
https://bugzilla.gnome.org/show_bug.cgi?id=777047
d40835
---
d40835
 src/cheese-application.vala | 2 +-
d40835
 src/vapi/cheese-common.vapi | 2 +-
d40835
 2 files changed, 2 insertions(+), 2 deletions(-)
d40835
d40835
diff --git a/src/cheese-application.vala b/src/cheese-application.vala
d40835
index 633a25eb..ee107395 100644
d40835
--- a/src/cheese-application.vala
d40835
+++ b/src/cheese-application.vala
d40835
@@ -203,7 +203,7 @@ public class Cheese.Application : Gtk.Application
d40835
 
d40835
         try
d40835
         {
d40835
-            camera.setup (device);
d40835
+            camera.setup ();
d40835
         }
d40835
         catch (Error err)
d40835
         {
d40835
diff --git a/src/vapi/cheese-common.vapi b/src/vapi/cheese-common.vapi
d40835
index a4c07a96..2ee13f18 100644
d40835
--- a/src/vapi/cheese-common.vapi
d40835
+++ b/src/vapi/cheese-common.vapi
d40835
@@ -48,7 +48,7 @@ namespace Cheese
d40835
     public void                        toggle_effects_pipeline (bool active);
d40835
     public void                        connect_effect_texture (Cheese.Effect effect, Clutter.Actor texture);
d40835
     public void                        set_video_format (Cheese.VideoFormat format);
d40835
-    public void                        setup (string udi) throws GLib.Error;
d40835
+    public void                        setup (Cheese.CameraDevice? device = null) throws GLib.Error;
d40835
     public void                        start_video_recording (string filename);
d40835
     public void                        stop ();
d40835
     public void                        stop_video_recording ();
d40835
-- 
d40835
2.13.6
d40835