mpegts: correct close on -1 spotted by btwe
This commit is contained in:
parent
de0124db01
commit
dba191e82b
1 changed files with 1 additions and 1 deletions
|
@ -435,7 +435,7 @@ mpegts_mux_stop ( mpegts_mux_t *mm, int force )
|
|||
free(mps);
|
||||
}
|
||||
RB_REMOVE(&mm->mm_pids, mp, mp_link);
|
||||
if (mp->mp_fd) {
|
||||
if (mp->mp_fd != -1) {
|
||||
tvhdebug("mpegts", "%s - close PID %04X (%d)", buf, mp->mp_pid, mp->mp_pid);
|
||||
close(mp->mp_fd);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue