inspect caps match, but pad link fails with EMPTY caps

PeterT peter.j.torelli at gmail.com
Fri Nov 11 01:09:40 UTC 2016


Hi,

I have two pipestages (dummyPRE and dummyPOST) that I wrote and am trying to
connect. 

I'm tryingt o connect them with a custom pad caps field because they share a
proprietary encrypted binary stream.

After I compile both pipestages (keep in mind it works fine when I connect
them via "ANY" pads), I use gst-inspect to check the source and sink pads I
wish to connect. The both list the same custom cap on the proper pads. Cool!

But they fail to connect.

When I look at the GST_DEBUG=6 log and observe the linking phase, the sink
pad of the right-hand-side stage (dummyPOST) responds to the linker with the
correct cap, but the left-hand-side (dummyPRE) is EMPTY.

How can gst-inspect return the proper caps for both pads, but then
gst_pad_link fail to query the cap for only one of the two stages?

0:00:00.464680585 55079 0x55e3d8b3aa00 DEBUG               GST_CAPS
gstpad.c:2212:gst_pad_link_check_compatible_unlocked:<dummypre0:src> src
caps EMPTY
0:00:00.464786445 55079 0x55e3d8b3aa00 DEBUG               GST_CAPS
gstpad.c:2214:gst_pad_link_check_compatible_unlocked:<dummypost0:sink> sink
caps ENCRRGBA
0:00:00.464883000 55079 0x55e3d8b3aa00 DEBUG               GST_CAPS
gstpad.c:2232:gst_pad_link_check_compatible_unlocked: caps are not
compatible

Weirdness.

Thoughts? 

Thanks,
PeterT



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/inspect-caps-match-but-pad-link-fails-with-EMPTY-caps-tp4680604.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list