diff options
Diffstat (limited to 'gst/camerabin')
-rw-r--r-- | gst/camerabin/gstcamerabin.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c index 905a8c9c..bdc4f28b 100644 --- a/gst/camerabin/gstcamerabin.c +++ b/gst/camerabin/gstcamerabin.c @@ -2750,13 +2750,15 @@ gst_camerabin_user_start (GstCameraBin * camera) } g_mutex_unlock (camera->capture_mutex); - g_object_set (G_OBJECT (camera->active_bin), "filename", - camera->filename->str, NULL); + if (camera->active_bin) { + g_object_set (G_OBJECT (camera->active_bin), "filename", + camera->filename->str, NULL); - if (camera->active_bin == camera->imgbin) { - gst_camerabin_start_image_capture (camera); - } else if (camera->active_bin == camera->vidbin) { - gst_camerabin_start_video_recording (camera); + if (camera->active_bin == camera->imgbin) { + gst_camerabin_start_image_capture (camera); + } else if (camera->active_bin == camera->vidbin) { + gst_camerabin_start_video_recording (camera); + } } } |