[mythtv] [DVB][PATCH] Audio language logging

Jesper Sörensen jesper at datapartner.se
Sat Apr 9 20:30:53 UTC 2005


This is a trivial patch to add the language code (if known) to stream 
descriptions, to make the autopid log a bit more useful. IIRC it used to 
do this but it must have gotten lost along the road...

This should be perfectly safe to apply before .18 so if Taylor or 
someone else has the time please commit this. Thanks!

-------------- next part --------------
Index: libs/libmythtv/siparser.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/siparser.cpp,v
retrieving revision 1.14
diff -u -r1.14 siparser.cpp
--- libs/libmythtv/siparser.cpp	4 Apr 2005 16:47:37 -0000	1.14
+++ libs/libmythtv/siparser.cpp	9 Apr 2005 19:48:07 -0000
@@ -841,6 +841,9 @@
                 e.Description = QString("Unknown type: %1").arg(e.Orig_Type);
                 break;
         }
+        
+        if (!e.Language.isEmpty())
+            e.Description += QString(" (%1)").arg(e.Language);
 
         p.Components += e;
     }


More information about the mythtv-dev mailing list