void AudioDestinationGStreamer::finishBuildingPipelineAfterWavParserPadReady(GstPad* pad)
{
- GstStructure *props;
+ GstStructure *props;
ASSERT(m_wavParserAvailable);
return;
}
- props = gst_structure_from_string("props,media.role=music", NULL);
+ props = gst_structure_from_string("props,resource.set.id=pid,media.role=music", NULL);
g_object_set(audioSink.get(), "stream-properties", props, NULL);
gst_structure_free(props);
GstElement *sink = gst_element_factory_make("pulsesink", "audio-sink");
if (sink != NULL) {
GstStructure *props;
- gchar prop_str[256] = "props,media.role=";
+ gchar prop_str[256] = "props,resource.set.id=pid,media.role=";
strncat(prop_str, media_class, sizeof(prop_str));
prop_str[sizeof(prop_str)-1] = 0;
m_asink = gst_element_factory_make("pulsesink", 0);
if (m_asink != NULL) {
- props = gst_structure_from_string("props,media.role=camera", NULL);
+ props = gst_structure_from_string("props,resource.set.id=pid,media.role=camera", NULL);
g_object_set(G_OBJECT(m_asink), "stream-properties", props, NULL);
gst_structure_free(props);
}