diff --git a/media/libcubeb/src/cubeb_audiounit.c b/media/libcubeb/src/cubeb_audiounit.c index fff013074f98..9369b8345a7e 100644 --- a/media/libcubeb/src/cubeb_audiounit.c +++ b/media/libcubeb/src/cubeb_audiounit.c @@ -7,6 +7,7 @@ #undef NDEBUG #include #include +#include #include #include #include @@ -181,6 +182,9 @@ cubeb_stream_init(cubeb * context, cubeb_stream ** stream, char const * stream_n stm->frames_queued = 0; r = OpenAComponent(comp, &stm->unit); + if (r != 0) { + fprintf(stderr, "cubeb_audiounit: FATAL: OpenAComponent returned %ld\n", (long) r); + } assert(r == 0); input.inputProc = audio_unit_output_callback;