changeset 2678:e69fd694b767 libavformat

print newline after program id even when the name is missing
author nicodvb
date Fri, 26 Oct 2007 20:02:11 +0000
parents 005c0fd8d3eb
children 646c70612cb6
files utils.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Fri Oct 26 15:12:55 2007 +0000
+++ b/utils.c	Fri Oct 26 20:02:11 2007 +0000
@@ -2580,9 +2580,8 @@
     if(ic->nb_programs) {
         int j, k;
         for(j=0; j<ic->nb_programs; j++) {
-            av_log(NULL, AV_LOG_INFO, "  Program %d", ic->programs[j]->id);
-            if(ic->programs[j]->name)
-                av_log(NULL, AV_LOG_INFO, " \"%s\"\n", ic->programs[j]->name);
+            av_log(NULL, AV_LOG_INFO, "  Program %d %s\n", ic->programs[j]->id,
+                   ic->programs[j]->name ? ic->programs[j]->name : "");
             for(k=0; k<ic->programs[j]->nb_stream_indexes; k++)
                 dump_stream_format(ic, ic->programs[j]->stream_index[k], index, is_output);
          }