diff options
-rw-r--r-- | libempathy/empathy-camera-monitor.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy/empathy-camera-monitor.c b/libempathy/empathy-camera-monitor.c index 7d9d695e8..a92349c92 100644 --- a/libempathy/empathy-camera-monitor.c +++ b/libempathy/empathy-camera-monitor.c @@ -115,11 +115,13 @@ on_camera_added (CheeseCameraDeviceMonitor *device, gint api_version, EmpathyCameraMonitor *self) { - EmpathyCamera *camera = empathy_camera_new (id, filename, product_name); + EmpathyCamera *camera; if (self->priv->cameras == NULL) return; + camera = empathy_camera_new (id, filename, product_name); + g_queue_push_tail (self->priv->cameras, camera); self->priv->num_cameras++; |