diff --git a/core/AmRtpReceiver.cpp b/core/AmRtpReceiver.cpp index cdd05545..a2e75603 100644 --- a/core/AmRtpReceiver.cpp +++ b/core/AmRtpReceiver.cpp @@ -89,7 +89,10 @@ void AmRtpReceiverThread::run() { // fake event to prevent the event loop from exiting int fake_fds[2]; - pipe(fake_fds); + + if (pipe(fake_fds)) + WARN("Cannot read from pipe\n"); + struct event* ev_default = event_new(ev_base,fake_fds[0], EV_READ|EV_PERSIST,