summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2017-04-21 11:59:39 +0200
committerDavid King <amigadave@amigadave.com>2017-05-30 08:18:09 +0100
commitc8c75796ff3e723d77bd68dec3fe91a072b36fc4 (patch)
tree5ac0ba3173713758f6d97be3d2a603a9daf8374d /src
parent05657bd5428839f533cac2141efa69bba78bf8c4 (diff)
downloadcheese-c8c75796ff3e723d77bd68dec3fe91a072b36fc4.tar.gz
Correctly select the given camera device
Due to a bug in the VAPI file the code would pass a string to the camera setup routine instead of a CameraDevice object. As the setup routine already has code to automatically select an appropriate device based on the name passing an argument is not even required. Note that the --device parameter might be somewhat confusing as it refers to the devices name and not to the /dev/videoX device file. https://bugzilla.gnome.org/show_bug.cgi?id=777047
Diffstat (limited to 'src')
-rw-r--r--src/cheese-application.vala2
-rw-r--r--src/vapi/cheese-common.vapi2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cheese-application.vala b/src/cheese-application.vala
index 633a25eb..ee107395 100644
--- a/src/cheese-application.vala
+++ b/src/cheese-application.vala
@@ -203,7 +203,7 @@ public class Cheese.Application : Gtk.Application
try
{
- camera.setup (device);
+ camera.setup ();
}
catch (Error err)
{
diff --git a/src/vapi/cheese-common.vapi b/src/vapi/cheese-common.vapi
index a4c07a96..2ee13f18 100644
--- a/src/vapi/cheese-common.vapi
+++ b/src/vapi/cheese-common.vapi
@@ -48,7 +48,7 @@ namespace Cheese
public void toggle_effects_pipeline (bool active);
public void connect_effect_texture (Cheese.Effect effect, Clutter.Actor texture);
public void set_video_format (Cheese.VideoFormat format);
- public void setup (string udi) throws GLib.Error;
+ public void setup (Cheese.CameraDevice? device = null) throws GLib.Error;
public void start_video_recording (string filename);
public void stop ();
public void stop_video_recording ();