From 8285a56c0c78819de8dffa424fde93ae277318e1 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 7 Dec 2017 11:39:27 +0100 Subject: [PATCH] fix possible segfault Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/52b0aaaaf01ec37058ce3734d4ae3ace91f594b0 Author: Jacek Jendrzej Date: 2017-12-07 (Thu, 07 Dec 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- generic-pc/audio.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/generic-pc/audio.cpp b/generic-pc/audio.cpp index 28effe3..5c2b5ab 100644 --- a/generic-pc/audio.cpp +++ b/generic-pc/audio.cpp @@ -392,8 +392,9 @@ void cAudio::run() adevice = ao_open_live(driver, &sformat, NULL); ai = ao_driver_info(driver); lt_info("%s: changed params ch %d srate %d bits %d adevice %p\n", - __func__, o_ch, o_sr, 16, adevice);; - lt_info("libao driver: %d name '%s' short '%s' author '%s'\n", + __func__, o_ch, o_sr, 16, adevice); + if(ai) + lt_info("libao driver: %d name '%s' short '%s' author '%s'\n", driver, ai->name, ai->short_name, ai->author); } #if 0