<meta http-equiv="content-type" content="text/html; charset=utf-8"><div>Hi expert,</div><div>Thanks for your reply for my question, </div><div>Appreciate so much.<br><br>從我的 iPad 傳送</div><div><br>Sebastian Dröge-3 [via GStreamer-devel] <<a href="/user/SendEmail.jtp?type=node&node=4665086&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> 於 2014/2/4 下午11:10 寫道:<br><br></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' type="cite"><div>

        On Sa, 2014-02-01 at 00:19 -0800, morris.yang wrote:
<br>> Hi, I am a audio decoder element provider,and I still don't understand when
<br>> app change audio tracks, what should the audio decoder element do anything
<br>> else? or just the same way with a normal decoding negotiation?Do I need to
<br>> add some additional actions in my original decoder element?For example, I
<br>> may need to handle 1.the caps2.the set_property for "pass through"=ture,
<br>> then I can know which audio format needs to be decoded and do it?Could give
<br>> me some reference for audio decoder element needs do for changing audio
<br>> tracks?Many thanksMorris
<br><br>If you mean the application audio track selection, your element does not
<br>have to do anything special at all. Just work as before.
<br><br>If you mean changes of the input format of your audio decoder, you'll
<br>get notified about that by changing caps. You will need to handle that
<br>and reconfigure your decoder then.
<br><br><br>Also you should consider using GstAudioDecoder as base class for your
<br>decoders as it handles most of the common behaviour of audio decoders in
<br>GStreamer and you'll have to write much less code.
<br><br>-- 
<br>Sebastian Dröge, Centricular Ltd - <a href="http://www.centricular.com" target="_top" rel="nofollow" link="external">http://www.centricular.com</a><br>Expertise, Straight from the Source
<br><br>_______________________________________________
<br>gstreamer-devel mailing list
<br><a href="/user/SendEmail.jtp?type=node&node=4665074&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_top" rel="nofollow" link="external">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br><!--start-attachments--><div class="small"><br><img src="http://gstreamer-devel.966125.n4.nabble.com/images/icon_attachment.gif"> <strong>signature.asc</strong> (968 bytes) <a href="http://gstreamer-devel.966125.n4.nabble.com/attachment/4665074/0/signature.asc" target="_top" rel="nofollow" link="external">Download Attachment</a></div><!--end-attachments-->

        
        
        
        <br>
        <br>
        <hr noshade="noshade" size="1" color="#cccccc">
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://gstreamer-devel.966125.n4.nabble.com/how-the-audio-decoder-element-handling-when-changing-audio-track-tp4665020p4665074.html" target="_top" rel="nofollow" link="external">http://gstreamer-devel.966125.n4.nabble.com/how-the-audio-decoder-element-handling-when-changing-audio-track-tp4665020p4665074.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from how the audio decoder element handling when changing audio track, <a href="" target="_top" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a>
        </div></div></blockquote>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/how-the-audio-decoder-element-handling-when-changing-audio-track-tp4665020p4665086.html">Re: how the audio decoder element handling when changing audio track</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>