Skip to content

Commit

Permalink
rearrange previous commit (avoid exit with active logger)
Browse files Browse the repository at this point in the history
  • Loading branch information
fduncanh committed Oct 10, 2022
1 parent c19f6f1 commit 7b206dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions uxplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7b206dd

Please sign in to comment.