]> git.sesse.net Git - kdenlive/blobdiff - src/lib/audio/audioInfo.cpp
use only kDebug/qDebug, no cout
[kdenlive] / src / lib / audio / audioInfo.cpp
index cb946cac7771bb30bde6612ec629f30ad5e5535d..819edb404596c0e462a0e80ca7184cf8f77ce769 100644 (file)
 
 #include "audioStreamInfo.h"
 #include <QString>
-#include <iostream>
 #include <cstdlib>
 
 AudioInfo::AudioInfo(Mlt::Producer *producer) :
-m_producer(NULL)
+    m_producer(NULL)
 {
     // Since we already receive an MLT producer, we do not need to initialize MLT:
     // Mlt::Factory::init(NULL);
 
     // Get the number of streams and add the information of each of them if it is an audio stream.
     int streams = producer->get_int("meta.media.nb_streams");
-    for (int i = 0; i < streams; i++) {
-        QByteArray propertyName = QString("meta.media.%1.stream.type").arg(i).toLocal8Bit();
-       const char* streamtype = producer->get(propertyName.data());
+    for (int i = 0; i < streams; ++i) {
+        QByteArray propertyName = QString::fromLatin1("meta.media.%1.stream.type").arg(i).toLocal8Bit();
+        const char* streamtype = producer->get(propertyName.data());
         if (streamtype && strcmp("audio", streamtype) == 0) {
             m_list << new AudioStreamInfo(producer, i);
         }