Skip to content

Commit

Permalink
Do not terminate the camera capturing when hiding.
Browse files Browse the repository at this point in the history
This function is called e.g. when a scene is switched.
We do not want the camera to shut down at this time, since the next scene
may also include its image.

Furthermore, this fixes issue Atterratio#12, though the underlying cause for the crash
still remains, namely that the terminate-funciton is called multiple times
without checking that the camera is still valid.
  • Loading branch information
Doeme committed Mar 17, 2020
1 parent ce91ee4 commit a69c073
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/gphoto-preview.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,6 @@ static void capture_show(void *vptr) {

static void capture_hide(void *vptr) {
struct preview_data *data = vptr;
if(data->source->active) {
capture_terminate(data);
}
}

static void *capture_create(obs_data_t *settings, obs_source_t *source){
Expand Down

0 comments on commit a69c073

Please sign in to comment.