<div dir="ltr"><div>Oh, Tim you're right! It all was caused by a missing return true in my set_caps() function, so 0 was returned (it's a debug build). OMG</div><div>Thanks, I have now rolled back to the simpler form.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mar 22 gen 2019 alle ore 13:16 Tim-Philipp Müller <<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, 2019-01-20 at 16:20 +0100, Luca Bacci wrote:<br>
<br>
Hi Luca,<br>
<br>
> I want RGB frames and for that I use the "caps" property of appsink<br>
> but<br>
> <br>
> GstCaps *caps = gst_caps_new_simple("video/x-raw",<br>
>                     "format", G_TYPE_STRING, "xRGB",<br>
>                     NULL);<br>
> <br>
> fails and returns NULL caps, why?<br>
<br>
I don't know why this would fail. Is it actually this call that fails<br>
or and returns NULL, or does something else fail later?<br>
<br>
Did you call gst_init()? <br>
<br>
I might be missing something, but it doesn't make much sense at first<br>
glance. <br>
<br>
Cheers<br>
 Tim<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>