Gst_caps_new_simple fails
Luca Bacci
luca.bacci982 at gmail.com
Tue Jan 22 15:47:14 UTC 2019
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
Thanks, I have now rolled back to the simpler form.
Il giorno mar 22 gen 2019 alle ore 13:16 Tim-Philipp Müller <t.i.m at zen.co.uk>
ha scritto:
> On Sun, 2019-01-20 at 16:20 +0100, Luca Bacci wrote:
>
> Hi Luca,
>
> > I want RGB frames and for that I use the "caps" property of appsink
> > but
> >
> > GstCaps *caps = gst_caps_new_simple("video/x-raw",
> > "format", G_TYPE_STRING, "xRGB",
> > NULL);
> >
> > fails and returns NULL caps, why?
>
> I don't know why this would fail. Is it actually this call that fails
> or and returns NULL, or does something else fail later?
>
> Did you call gst_init()?
>
> I might be missing something, but it doesn't make much sense at first
> glance.
>
> Cheers
> Tim
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190122/32a26dfb/attachment.html>
More information about the gstreamer-devel
mailing list