cmdutils: wrap exit explicitly
authorLuca Barbato <lu_zero@gentoo.org>
Sat, 6 Jul 2013 23:52:51 +0000 (01:52 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 7 Jul 2013 19:43:23 +0000 (21:43 +0200)
commit636ced8e1dc8248a1353b416240b93d70ad03edb
tree6a157f3eb215b97d50fd96ff43d7ae6581a7e9af
parent21732063a346475eb22c332b27e8216b79f9ad4a
cmdutils: wrap exit explicitly

Some C runtime implementations deadlock when calling threading functions
on the atexit() handler.

Use a simpler wrapper similar to av_log to call the cleanup function
before exit.

Bug-Id: 523
avconv.c
avprobe.c
cmdutils.c
cmdutils.h