From 3138211b2b00e1b4bdcc2d29486473969285da1e Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 13 Jul 2010 18:14:53 +0200 Subject: display name instead of device when device prop is not available --- src/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interface.c') diff --git a/src/interface.c b/src/interface.c index 75c2e4e..367eb8d 100644 --- a/src/interface.c +++ b/src/interface.c @@ -80,7 +80,7 @@ void print_sink_list(void) { mvwprintw(menu_win, y+i+offset, x, "%2d %-13s", sink_list[i]->index, - sink_list[i]->device); + sink_list[i]->device != NULL ? sink_list[i]->device : sink_list[i]->name); if (i == chooser_sink && chooser_input == -1) wattroff(menu_win, A_REVERSE); -- cgit