<div dir="ltr"><div><div><div>I've recently started seeing a strange error in my application which did not appear in pre-1.4 versions of gstreamer.<br><br></div>Basically, I have two bins that I am trying to connect, one ("reader") contains a media source, and one ("videostub") contains a media-specific processing pipeline.<br><br></div>Both bins (and all contained elements) start in the NULL state. I tell the reader to transition to Playing, and catch a pad-added signal. When I see its a video pad, I go to link in the videostub to handle video output. At this point the reader has a full set of caps for the input file, while the videostub has no caps at all. This used to work. Now I (sometimes) get an error that the caps are incompatible.<br><br></div>Below is an excerpt from my logs of the relevant error. The State Dump is part of my debugging output that I turned on when trying to diagnose this issue.<br><br clear="all"><div><div><div><div><div>[STDOUT] State Dump -- Target State: NULL<br>[STDOUT] reader - NULL<br>[STDOUT]   decoder - NULL<br>[STDOUT]     typefind - NULL<br>[STDOUT]   FileReader - NULL<br>[STDERR] 0:00:26.702031594 11484      0x24608a0 LOG                     VAAL vaal.c:3316:vaal_source_config: Current Reader is good. Setting Source to /usr/share/userful-multiseat/frontend/control-center/gwt/images/videowall/test-pattern-mountains.jpg<br>[STDERR] 0:00:26.702116274 11484      0x24608a0 LOG                     VAAL vaal.c:3820:vaal_run: Starting Repeat Loop for Playlist Item<br>[STDERR] 0:00:26.702122347 11484      0x24608a0 LOG                     VAAL vaal.c:3826:vaal_run: Entering Playing state.<br>[STDERR] 0:00:26.702124841 11484      0x24608a0 LOG                     VAAL vaal.c:433:vaal_state_change: Setting Vaal State to PLAYING<br>[STDERR] 0:00:26.702128199 11484      0x24608a0 LOG                     VAAL vaal.c:376:vaal_element_state_change: Initiating Element State Change: pipeline -> PLAYING<br>[STDOUT] /GstPipeline:pipeline/GstBin:reader/GstFileSrc:FileReader: location = /usr/share/userful-multiseat/frontend/control-center/gwt/images/videowall/test-pattern-mountains.jpg<br>[STDOUT] /GstPipeline:pipeline/GstBin:reader/GstDecodeBin:decoder/GstTypeFindElement:typefind.GstPad:src: caps = "image/jpeg\,\ width\=\(int\)4272\,\ height\=\(int\)2848\,\ sof-marker\=\(int\)0"<br>[STDOUT] /GstPipeline:pipeline/GstBin:reader/GstDecodeBin:decoder/GstJpegDec:jpegdec10.GstPad:sink: caps = "image/jpeg\,\ width\=\(int\)4272\,\ height\=\(int\)2848\,\ sof-marker\=\(int\)0"<br>[STDOUT] /GstPipeline:pipeline/GstBin:reader/GstDecodeBin:decoder/GstJpegDec:jpegdec10.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)4272\,\ height\=\(int\)2848\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ colorimetry\=\(string\)1:4:0:0\,\ framerate\=\(fraction\)0/1"<br>[STDERR] 0:00:26.725758542 11484 0x7f0598002a30 LOG                     VAAL vaal.c:2399:pad_export_callback: A new video pad ("src_10") was created<br>[STDERR] 0:00:26.725828771 11484 0x7f0598002a30 LOG                     VAAL vaal.c:2330:pad_connect_callback: A new ghost pad ("vsrc") was detected<br>[STDERR] 0:00:26.725837168 11484 0x7f0598002a30 LOG                     VAAL vaal.c:2358:pad_connect_callback: Adding videostub to pipeline<br>[STDERR] 0:00:26.725887780 11484 0x7f0598002a30 LOG                     VAAL vaal.c:2362:pad_connect_callback: connecting videostub<br>[STDERR] 0:00:26.732373142 11484 0x7f0598002a30 LOG                     VAAL vaal.c:2376:pad_connect_callback: Posting an Error.<br>[STDOUT] RAW ERROR: 2474/6 Could not link <reader:vsrc> to <videostub:sink>: incompatible formats<br>[STDOUT] Source has format: video/x-raw, format=(string)I420, width=(int)4272, height=(int)2848, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)1:4:0:0, framerate=(fraction)0/1<br>[STDOUT] But Dest has format: EMPTY<br>[STDERR] 0:00:26.732401426 11484      0x24608a0 LOG                     VAAL vaal.c:356:bus_message_drain: Draining Bus Messages<br>[STDERR] 0:00:26.732400936 11484      0x2574450 LOG                     VAAL vaal.c:282:bus_message_handler: Got Raw Bus Error Message error message: 0x7f05b40a2940, time 99:99:99.999999999, seq-num 2822, element 'reader', GstMessageError, gerror=(GError)NULL, debug=(string)NULL;<br>[STDERR] 0:00:26.732608322 11484      0x24608a0 LOG                     VAAL vaal.c:444:vaal_state_change: Failed to set State<br><br><br><br><br>-- <br>Stirling Westrup<br>Programmer, Entrepreneur.<br><a href="https://www.linkedin.com/e/fpf/77228" target="_blank">https://www.linkedin.com/e/fpf/77228</a><br><a href="http://www.linkedin.com/in/swestrup" target="_blank">http://www.linkedin.com/in/swestrup</a><br><a href="http://technaut.livejournal.com" target="_blank">http://technaut.livejournal.com</a><br><a href="http://sourceforge.net/users/stirlingwestrup" target="_blank">http://sourceforge.net/users/stirlingwestrup</a>
</div></div></div></div></div></div>