Strange new Linking Error in Gstreamer 1.4.1

Stirling Westrup swestrup at gmail.com
Thu Oct 2 09:23:48 PDT 2014


I've recently started seeing a strange error in my application which did
not appear in pre-1.4 versions of gstreamer.

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.

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.

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.

[STDOUT] State Dump -- Target State: NULL
[STDOUT] reader - NULL
[STDOUT]   decoder - NULL
[STDOUT]     typefind - NULL
[STDOUT]   FileReader - NULL
[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
[STDERR] 0:00:26.702116274 11484      0x24608a0 LOG
VAAL vaal.c:3820:vaal_run: Starting Repeat Loop for Playlist Item
[STDERR] 0:00:26.702122347 11484      0x24608a0 LOG
VAAL vaal.c:3826:vaal_run: Entering Playing state.
[STDERR] 0:00:26.702124841 11484      0x24608a0 LOG
VAAL vaal.c:433:vaal_state_change: Setting Vaal State to PLAYING
[STDERR] 0:00:26.702128199 11484      0x24608a0 LOG
VAAL vaal.c:376:vaal_element_state_change: Initiating Element State Change:
pipeline -> PLAYING
[STDOUT] /GstPipeline:pipeline/GstBin:reader/GstFileSrc:FileReader:
location =
/usr/share/userful-multiseat/frontend/control-center/gwt/images/videowall/test-pattern-mountains.jpg
[STDOUT]
/GstPipeline:pipeline/GstBin:reader/GstDecodeBin:decoder/GstTypeFindElement:typefind.GstPad:src:
caps = "image/jpeg\,\ width\=\(int\)4272\,\ height\=\(int\)2848\,\
sof-marker\=\(int\)0"
[STDOUT]
/GstPipeline:pipeline/GstBin:reader/GstDecodeBin:decoder/GstJpegDec:jpegdec10.GstPad:sink:
caps = "image/jpeg\,\ width\=\(int\)4272\,\ height\=\(int\)2848\,\
sof-marker\=\(int\)0"
[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"
[STDERR] 0:00:26.725758542 11484 0x7f0598002a30 LOG
VAAL vaal.c:2399:pad_export_callback: A new video pad ("src_10") was created
[STDERR] 0:00:26.725828771 11484 0x7f0598002a30 LOG
VAAL vaal.c:2330:pad_connect_callback: A new ghost pad ("vsrc") was detected
[STDERR] 0:00:26.725837168 11484 0x7f0598002a30 LOG
VAAL vaal.c:2358:pad_connect_callback: Adding videostub to pipeline
[STDERR] 0:00:26.725887780 11484 0x7f0598002a30 LOG
VAAL vaal.c:2362:pad_connect_callback: connecting videostub
[STDERR] 0:00:26.732373142 11484 0x7f0598002a30 LOG
VAAL vaal.c:2376:pad_connect_callback: Posting an Error.
[STDOUT] RAW ERROR: 2474/6 Could not link <reader:vsrc> to
<videostub:sink>: incompatible formats
[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
[STDOUT] But Dest has format: EMPTY
[STDERR] 0:00:26.732401426 11484      0x24608a0 LOG
VAAL vaal.c:356:bus_message_drain: Draining Bus Messages
[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;
[STDERR] 0:00:26.732608322 11484      0x24608a0 LOG
VAAL vaal.c:444:vaal_state_change: Failed to set State




-- 
Stirling Westrup
Programmer, Entrepreneur.
https://www.linkedin.com/e/fpf/77228
http://www.linkedin.com/in/swestrup
http://technaut.livejournal.com
http://sourceforge.net/users/stirlingwestrup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141002/f7f96745/attachment.html>


More information about the gstreamer-devel mailing list