mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
camerabin: Reset pre-night-mode stored fps when mode changes
When switching between video/still modes the pre-night-mode fps should be reset to prevent it being used in the incorrect mode, causing the videosource to fail configuring itself
This commit is contained in:
parent
4503a85d54
commit
618f32ad8d
1 changed files with 5 additions and 0 deletions
|
@ -982,6 +982,11 @@ gst_camerabin_change_mode (GstCameraBin * camera, gint mode)
|
|||
mode, camera->mode);
|
||||
/* Interrupt ongoing capture */
|
||||
gst_camerabin_do_stop (camera);
|
||||
|
||||
/* reset night-mode stored values */
|
||||
camera->pre_night_fps_n = 0;
|
||||
camera->pre_night_fps_d = 1;
|
||||
|
||||
camera->mode = mode;
|
||||
gst_element_get_state (GST_ELEMENT (camera), &state, &pending_state, 0);
|
||||
if (state == GST_STATE_PAUSED || state == GST_STATE_PLAYING ||
|
||||
|
|
Loading…
Reference in a new issue