how the audio decoder element handling when changing audio track

morris.yang morriscc at gmail.com
Tue Feb 4 07:55:23 PST 2014


Hi expert,
Thanks for your reply for my question, 
Appreciate so much.

從我的 iPad 傳送

> Sebastian Dröge-3 [via GStreamer-devel] <ml-node+s966125n4665074h54 at n4.nabble.com> 於 2014/2/4 下午11:10 寫道:
> 
> On Sa, 2014-02-01 at 00:19 -0800, morris.yang wrote: 
> > Hi, I am a audio decoder element provider,and I still don't understand when 
> > app change audio tracks, what should the audio decoder element do anything 
> > else? or just the same way with a normal decoding negotiation?Do I need to 
> > add some additional actions in my original decoder element?For example, I 
> > may need to handle 1.the caps2.the set_property for "pass through"=ture, 
> > then I can know which audio format needs to be decoded and do it?Could give 
> > me some reference for audio decoder element needs do for changing audio 
> > tracks?Many thanksMorris 
> 
> If you mean the application audio track selection, your element does not 
> have to do anything special at all. Just work as before. 
> 
> If you mean changes of the input format of your audio decoder, you'll 
> get notified about that by changing caps. You will need to handle that 
> and reconfigure your decoder then. 
> 
> 
> Also you should consider using GstAudioDecoder as base class for your 
> decoders as it handles most of the common behaviour of audio decoders in 
> GStreamer and you'll have to write much less code. 
> 
> -- 
> Sebastian Dröge, Centricular Ltd - http://www.centricular.com
> Expertise, Straight from the Source 
> 
> _______________________________________________ 
> gstreamer-devel mailing list 
> [hidden email] 
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
>  signature.asc (968 bytes) Download Attachment
> 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://gstreamer-devel.966125.n4.nabble.com/how-the-audio-decoder-element-handling-when-changing-audio-track-tp4665020p4665074.html
> To unsubscribe from how the audio decoder element handling when changing audio track, click here.
> NAML




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/how-the-audio-decoder-element-handling-when-changing-audio-track-tp4665020p4665086.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140204/21a68d41/attachment.html>


More information about the gstreamer-devel mailing list