From eefde7f4ce8cba3f15964ca2b92ba92457c93ed6 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 3 Mar 2013 15:02:51 +0100 Subject: [PATCH] CRemoteControl: de-spam processAPIDnames() Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/66679f537c0c1a1ed37062f7f8b93fb6a75209a7 Author: Stefan Seyfried Date: 2013-03-03 (Sun, 03 Mar 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/daemonc/remotecontrol.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/daemonc/remotecontrol.cpp b/src/daemonc/remotecontrol.cpp index 5d55163c4..b65212aa6 100644 --- a/src/daemonc/remotecontrol.cpp +++ b/src/daemonc/remotecontrol.cpp @@ -4,7 +4,7 @@ Copyright (C) 2001 Steffen Hehn 'McClean' Homepage: http://dbox.cyberphoria.org/ - (C) 2008-2012 Stefan Seyfried + (C) 2008-2013 Stefan Seyfried Kommentar: @@ -484,10 +484,12 @@ void CRemoteControl::processAPIDnames() pref_ac3_found = -1; } + if (! current_PIDs.APIDs.empty()) + printf("Neutrino: "); for(unsigned int count=0; count< current_PIDs.APIDs.size(); count++) { const char *iso = getISO639Description(current_PIDs.APIDs[count].desc); - printf("Neutrino: apid name= %s (%s) pid= %X\n", current_PIDs.APIDs[count].desc, iso, current_PIDs.APIDs[count].pid); + printf("apid=%04x/%s/%s ", current_PIDs.APIDs[count].pid, current_PIDs.APIDs[count].desc, iso); if ( current_PIDs.APIDs[count].component_tag != 0xFF ) { has_unresolved_ctags= true; @@ -511,6 +513,8 @@ void CRemoteControl::processAPIDnames() else if (current_PIDs.APIDs[count].is_aac && !strstr(current_PIDs.APIDs[count].desc, " (AAC)")) strncat(current_PIDs.APIDs[count].desc, " (AAC)", DESC_MAX_LEN - strlen(current_PIDs.APIDs[count].desc)-1); } + if (! current_PIDs.APIDs.empty()) + printf("\n"); if ( has_unresolved_ctags ) {