<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40" dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" style="text-align:left; direction:ltr;"><div>Hi,</div><div><br></div><div>Yes, the control source will always override manually set properties before they are used. If you want to set it manually, you have to remove the control binding with gst_object_remove_control_binding(), you can retrive it with gst_object_get_control_binding()</div><div><br></div><div>Olivier</div><div><br></div><div>On Mon, 2019-05-13 at 15:09 +0000, Weber, Holger wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB">I use a control source to fade in an audio stream when my pipeline is started.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">The fade in works as expected (see code).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">        GstControlSource* pCtrlSource = gst_interpolation_control_source_new();<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">        g_object_set(pCtrlSource, "mode", GST_INTERPOLATION_MODE_LINEAR, NULL);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">        gst_object_add_control_binding(GST_OBJECT_CAST(m_pElVolume), gst_direct_control_binding_new(GST_OBJECT_CAST(m_pElVolume), "volume", pCtrlSource));<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">        GstTimedValueControlSource *tv_csource = (GstTimedValueControlSource *) pCtrlSource;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">        gst_timed_value_control_source_set(tv_csource, 0 * GST_MSECOND, 0.0);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">        gst_timed_value_control_source_set(tv_csource, iFadeInMs * GST_MSECOND, 0.0);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">        gst_timed_value_control_source_set(tv_csource, (iFadeInMs + iFADE_RAMP_TIM_MS) * GST_MSECOND, 0.10);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">        </span>gst_object_unref(pCtrlSource);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB">There is another function which is triggered from outside some minutes later which tries to reduce the volume to 50%.<br>
Therefore I directly set the volume property:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:justify"><span lang="EN-GB">g_object_set(G_OBJECT(m_pElVolume), "volume", 0.5, NULL);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:justify"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-align:justify"><span lang="EN-GB">But nothing happens. If I remove the control source (just uncomment code above) reducing the volume works as expected.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:justify"><span lang="EN-GB">I guess that I have to remove or destroy something after the fade in but I have no idea.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:justify"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-align:justify"><span lang="EN-GB">Any ideas?<o:p></o:p></span></p>
</div>


<pre>_______________________________________________</pre><pre>gstreamer-devel mailing list</pre><a href="mailto:gstreamer-devel@lists.freedesktop.org"><pre>gstreamer-devel@lists.freedesktop.org</pre></a><pre><br></pre><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"><pre>https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</pre></a></blockquote><div><span><pre><pre>-- <br></pre>Olivier CrĂȘte
olivier.crete@collabora.com
</pre></span></div></body></html>