Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: fix sigsegv in dvr thread, fixes #3260
  • Loading branch information
perexg committed Nov 3, 2015
1 parent 6d96358 commit 646a663
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/dvr/dvr_rec.c
Expand Up @@ -1386,8 +1386,10 @@ dvr_thread(void *aux)
start_time = 0;
started = 0;
muxing = 0;
streaming_start_unref(ss);
ss = NULL;
if (ss) {
streaming_start_unref(ss);
ss = NULL;
}
}
break;

Expand Down Expand Up @@ -1450,6 +1452,9 @@ dvr_thread(void *aux)
if (prch->prch_muxer)
dvr_thread_epilog(de, postproc);

if (ss)
streaming_start_unref(ss);

free(postproc);
return NULL;
}
Expand Down

0 comments on commit 646a663

Please sign in to comment.