<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=079475012-19062008><FONT face=Arial 
color=#0000ff size=2>Hi, </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=079475012-19062008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=079475012-19062008><FONT face=Arial 
color=#0000ff size=2>well, the thing is I've been able to use playbin instead of 
decodebin for everything in my software, but this. If I understand, I can do the 
same thing with decodebin but I have to do things manually(create every pads). 
All of my src streams are souphttpsrc. Do I have access&nbsp;to similar 
mechanism for uri handling, network buffering, end of stream, volume? Sorry for 
all the questions. The most simple thing for me would be to have some kind of 
message on the bus or a callback when the stream type as been 
found.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=079475012-19062008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=079475012-19062008><FONT face=Arial 
color=#0000ff size=2>The instruction that you gave me, are they using decodebin? 
If I look at the example code on chapter 19, I don't see anything about buffers 
in there. I don't want to be reinveting the wheel neither.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=079475012-19062008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=079475012-19062008><FONT face=Arial 
color=#0000ff size=2>Thanks a lot.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=079475012-19062008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=079475012-19062008><FONT face=Arial 
color=#0000ff size=2>Israel</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Manish Rana [mailto:manish.rana@gmail.com] 
<BR><B>Sent:</B> Thursday, June 19, 2008 3:07 AM<BR><B>To:</B> Israël 
Prince-Béliveau<BR><B>Cc:</B> 
gstreamer-devel@lists.sourceforge.net<BR><B>Subject:</B> Re: [gst-devel] mime 
type of stream in playbin<BR></FONT><BR></DIV>
<DIV></DIV>Hi, <BR><BR>Please get the Caps of the Coming Buffer using 
gst_buffer_get_caps<BR>then get the structure of the caps using 
gst_caps_get_structure<BR>and then use gst_structure_get_string(&nbsp; temp, 
"media") to get the media type<BR><BR>this might help u <BR>if u need more info 
let me know <BR><BR>BR<BR>Manish<BR><BR>
<DIV class=gmail_quote>On Thu, Jun 19, 2008 at 2:12 AM, Israël Prince-Béliveau 
&lt;<A 
href="mailto:ipbeliveau@classeaudio.com">ipbeliveau@classeaudio.com</A>&gt; 
wrote:<BR>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
  <DIV>
  <DIV><FONT face=Arial size=2><SPAN>Hello,</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN>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&nbsp;type.</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN>Can anyone help me on 
  this?</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN></SPAN></FONT>&nbsp;</DIV>
  <DIV><SPAN><FONT face=Arial size=2>Thanks,</FONT></SPAN></DIV>
  <DIV><SPAN><FONT face=Arial size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN><FONT face=Arial 
  size=2>Israel</FONT></SPAN></DIV></DIV><BR>-------------------------------------------------------------------------<BR>Check 
  out the new SourceForge.net Marketplace.<BR>It's the best place to buy or sell 
  services for<BR>just about anything Open Source.<BR><A 
  href="http://sourceforge.net/services/buy/index.php" 
  target=_blank>http://sourceforge.net/services/buy/index.php</A><BR>_______________________________________________<BR>gstreamer-devel 
  mailing list<BR><A 
  href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</A><BR><A 
  href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" 
  target=_blank>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR><BR></BLOCKQUOTE></DIV><BR></BODY></HTML>