Initialize libav before enabling kqueue monitor.

This commit is contained in:
Gleb Smirnoff 2017-12-29 15:16:29 -08:00 committed by Justin Maggard
parent dfdd81a09f
commit 958da67592

View File

@ -93,6 +93,7 @@
#include "upnpevents.h" #include "upnpevents.h"
#include "scanner.h" #include "scanner.h"
#include "monitor.h" #include "monitor.h"
#include "libav.h"
#include "log.h" #include "log.h"
#include "tivo_beacon.h" #include "tivo_beacon.h"
#include "tivo_utils.h" #include "tivo_utils.h"
@ -1157,8 +1158,10 @@ main(int argc, char **argv)
#endif /* HAVE_INOTIFY */ #endif /* HAVE_INOTIFY */
#ifdef HAVE_KQUEUE #ifdef HAVE_KQUEUE
if (!GETFLAG(SCANNING_MASK)) if (!GETFLAG(SCANNING_MASK)) {
av_register_all();
kqueue_monitor_start(); kqueue_monitor_start();
}
#endif /* HAVE_KQUEUE */ #endif /* HAVE_KQUEUE */
smonitor = OpenAndConfMonitorSocket(); smonitor = OpenAndConfMonitorSocket();