Can not create RTP capabilities
Nicolas Dufresne
nicolas at ndufresne.ca
Wed Jun 28 14:33:29 UTC 2017
Le mardi 27 juin 2017 à 20:03 -0700, CC a écrit :
> The code I create rtph264depay RTP capabilities is below.
>
> ...
> GstCaps *caps;
>
> caps = gst_caps_new_simple ("application/x-rtp",
> "encoding-name", G_TYPE_STRING,
> "H264",
> "payload", G_TYPE_INT, 107, NULL);
>
> if (!GST_IS_CAPS(caps)) {
> g_printerr ("caps null ??.\n");
> return -1;
> }
> ...
I have simply copy pasted your test and ran it, it works. Did you
forget to call gst_init() ?
You can find the test here, see first line for compilation:
https://paste.fedoraproject.org/paste/yZvnpiiHjXdftWlYHao1Wg
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170628/f4bd50a4/attachment.sig>
More information about the gstreamer-devel
mailing list