<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 20 janv. 2020 05 h 45, m.lenz <<a href="mailto:m.lenz@kappa-optronics.com">m.lenz@kappa-optronics.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I tried out the following:<br>
<br>
  GstElement *videosink;<br>
  videosink = gst_element_factory_make ("udpsink", "videosink");<br>
  ...<br>
  GstPad *pad = gst_element_get_static_pad (videosink, "sink");<br>
  GstCaps *caps = gst_pad_get_current_caps(pad);<br>
<br>
But the returned pointer in caps is always NULL. The pointer of my pad<br>
referring to the videosink is found!<br>
<br>
Does the udpsink has no caps? Because this is what the documentation says<br>
about this. I also tried if(gst_pad_has_current_caps(pad)) and this is also<br>
always false.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Caps negotiation happens asynchronously. If your pipeline isn't running, this is expected. You can also check the allowed caps if you prefer.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">udpsink allow pretty much anything, so that won't be very useful.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Maybe it is a problem, that the caps will not be passed on the next element?<br>
I created caps on appsrc and linked appsrc, rtpvrawpay and udpsink to a<br>
pipeline at the end of my application.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">As said, caps will be negotiated asynchronously.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>