fix segfault due to failed mk_mux_create()
if mk_mux_create() fails due to to file system permissions tvheadend will crash when trying to remove the rec-entry from the UI.
This commit is contained in:
parent
57ef38d355
commit
f0e4366aa2
1 changed files with 4 additions and 2 deletions
6
src/dvr/dvr_rec.c
Normal file → Executable file
6
src/dvr/dvr_rec.c
Normal file → Executable file
|
@ -553,8 +553,10 @@ dvr_spawn_postproc(dvr_entry_t *de, const char *dvr_postproc)
|
|||
static void
|
||||
dvr_thread_epilog(dvr_entry_t *de)
|
||||
{
|
||||
mk_mux_close(de->de_mkmux);
|
||||
de->de_mkmux = NULL;
|
||||
if(de->de_mkmux) {
|
||||
mk_mux_close(de->de_mkmux);
|
||||
de->de_mkmux = NULL;
|
||||
}
|
||||
|
||||
dvr_config_t *cfg = dvr_config_find_by_name_default(de->de_config_name);
|
||||
if(cfg->dvr_postproc)
|
||||
|
|
Loading…
Add table
Reference in a new issue