<div dir="ltr">Hi there!<div><br></div><div>Given the way my code has been written, the fastest way to fix this was to change the call</div><div><br></div><div>GstCaps* queried_caps = gst_pad_query_caps(pad, NULL);</div><div><br></div><div>with the call</div><div><br></div><div>GstCaps* queried_caps = gst_pad_get_current_caps(pad);</div><div><br></div><div>and it worked! Thank you all for your help!</div><div><br></div><div>Cheers</div><div>Fabrizio</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 29, 2018 at 3:55 PM, Tim Müller <span dir="ltr"><<a href="mailto:tim@centricular.com" target="_blank">tim@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, 2018-01-29 at 07:23 -0700, tobatrance wrote:<br>
<br>
Hi,<br>
<span class=""><br>
> Once you pulled a sample with gst_app_sink_pull_sample you can<br>
> extract its buffer with gst_sample_get_buffer and following get the<br>
> video frame and video info with gst_video_frame_map. The video info<br>
> object got the information you're looking for.<br>
<br>
</span>That should work. Alternatively, you can also look at the GstCaps in<br>
the GstSample with gst_sample_get_caps() and either poke at the fields<br>
directly or parse it into a VideoInfo struct with<br>
gst_video_info_from_caps(). Or you look at the caps on the element's<br>
sink pad with gst_pad_get_current_caps().<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888"> -tim<br>
<br>
--<br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a><br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:'Droid Sans',arial,sans-serif;font-size:13px"><div>Fabrizio Dini</div>Magenta srl - Via Pasquini 6, 50127 Firenze - Italy<br>+39 393 5672224 (mobile)<br>+39 055 286 856<br><a href="mailto:f.dini@magentalab.it" style="color:rgb(103,117,58)" target="_blank">fabrizio.dini@magentalab.it</a><br>Company web page: <a href="http://www.magentalab.it/" style="color:rgb(103,117,58)" target="_blank">www.magentalab.it</a>, <a href="http://trafficflow.magentalab.it" target="_blank">trafficflow.magentalab.it</a><br></span></div></div></div></div>
</div>