aboutsummaryrefslogtreecommitdiffhomepage
path: root/stream/audio_in.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2014-10-19 21:04:38 +0200
committerGravatar wm4 <wm4@nowhere>2014-10-19 21:04:38 +0200
commitf8f0098560c9b88c927b76c435f47aaf70cfc871 (patch)
treeb0e8ce2e57a6a09873b5fa5e267469202fad51b3 /stream/audio_in.c
parentf4c589418c7d8a7dbcfb2f25fd409f424d2ae805 (diff)
ipc: fix minor error cleanup issues
The ipc_thread can exit any time, and will free the mp_ipc_ctx when doing this, leaving a dangling pointer. This was somewhat handled in the original commit by setting mpctx->ipc_ctx to NULL when the thread exited, but that was still a race condition. Handle it by freeing most things after joining the ipc_thread. This means some resources will not be freed until player exit, but that should be ok (it's an exceptional error situation). Also, actually close the pipe FDs in mp_init_ipc() on another error path.
Diffstat (limited to 'stream/audio_in.c')
0 files changed, 0 insertions, 0 deletions