[gst-devel] mime type of stream in playbin

Manish Rana manish.rana at gmail.com
Thu Jun 19 09:06:30 CEST 2008


Please get the Caps of the Coming Buffer using gst_buffer_get_caps
then get the structure of the caps using gst_caps_get_structure
and then use gst_structure_get_string(  temp, "media") to get the media type

this might help u
if u need more info let me know


On Thu, Jun 19, 2008 at 2:12 AM, Israël Prince-Béliveau <
ipbeliveau at classeaudio.com> wrote:

>  Hello,
> I'd like to get the mime type of the stream for a playbin element. The
> thing is, I'd like to change the audio or video sink depending on the
> mime type.
> Can anyone help me on this?
> Thanks,
> Israel
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080619/60ba82d7/attachment.htm>

More information about the gstreamer-devel mailing list