Set media.name to '*'.
authorMohammed Sameer <msameer@foolab.org>
Mon, 16 Sep 2013 22:48:27 +0000 (01:48 +0300)
committerMohammed Sameer <msameer@foolab.org>
Mon, 16 Sep 2013 22:48:27 +0000 (01:48 +0300)
This fixes videos in post capture not having any sound

declarative/videoplayer.cpp
src/cameraresources.cpp

index e6c3f6c..698d0ed 100644 (file)
@@ -114,7 +114,6 @@ void VideoPlayer::classBegin() {
     qmlInfo(this) << "Failed to create pulsesink";
   }
   else {
-    // TODO: properties on sink
     g_object_set (m_bin, "audio-sink", elem, NULL);
   }
 
index 3f7da5f..91b06d7 100644 (file)
@@ -278,6 +278,7 @@ bool CameraResourcesWorker::updateSet(const QList<ResourcePolicy::ResourceType>&
 
     ResourcePolicy::AudioResource *audio = new ResourcePolicy::AudioResource(APPLICATION_CLASS);
     audio->setProcessID(QCoreApplication::applicationPid());
+    audio->setStreamTag("media.name", "*");
     audio->setOptional(isOptional);
     m_set->addResourceObject(audio);
   }