diff --git a/uxplay.cpp b/uxplay.cpp index e2453aeb..b6b6129e 100644 --- a/uxplay.cpp +++ b/uxplay.cpp @@ -841,16 +841,16 @@ int main (int argc, char *argv[]) { } if (do_append_hostname) append_hostname(server_name); - - render_logger = logger_init(); - logger_set_callback(render_logger, log_callback, NULL); - logger_set_level(render_logger, debug_log ? LOGGER_DEBUG : LOGGER_INFO); if (!gstreamer_init()) { - printf ("stopping\n"); + LOGE ("stopping"); exit (1); } + render_logger = logger_init(); + logger_set_callback(render_logger, log_callback, NULL); + logger_set_level(render_logger, debug_log ? LOGGER_DEBUG : LOGGER_INFO); + if (use_audio) { audio_renderer_init(render_logger, audiosink.c_str()); } else {