summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-02-15 15:53:40 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-02-15 15:53:40 +0100
commita6ebdf3e34eea21764be89c2b14833a6d641d187 (patch)
treed255ea6375a875530236fdc090fd0bebc6c047fd
parent00fe26ba32397170225a1346c77c2b24ce6b49d5 (diff)
downloaduca-a6ebdf3e34eea21764be89c2b14833a6d641d187.tar.gz
uca-a6ebdf3e34eea21764be89c2b14833a6d641d187.tar.bz2
uca-a6ebdf3e34eea21764be89c2b14833a6d641d187.tar.xz
uca-a6ebdf3e34eea21764be89c2b14833a6d641d187.zip
Do not stop camera when closing the object
This is an undocumented and in some cases unwanted side effect.
-rw-r--r--src/uca-camera.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/uca-camera.c b/src/uca-camera.c
index eb1c825..62a3e55 100644
--- a/src/uca-camera.c
+++ b/src/uca-camera.c
@@ -334,17 +334,6 @@ uca_camera_dispose (GObject *object)
priv = UCA_CAMERA_GET_PRIVATE (object);
- if (priv->is_recording) {
- GError *error = NULL;
-
- uca_camera_stop_recording (UCA_CAMERA (object), &error);
-
- if (error != NULL) {
- g_warning ("Could not stop recording: %p", error->message);
- g_error_free (error);
- }
- }
-
if (priv->ring_buffer != NULL) {
g_object_unref (priv->ring_buffer);
priv->ring_buffer = NULL;