Pull mode and queue2

Demeyer Jonathan Jonathan.Demeyer at macq.eu
Wed Sep 24 06:44:52 PDT 2014


Hello,

I'm trying to do an application using pull mode in some elements.

For testing purpose, I wrote two filters. One filter "pullfilter" uses pull mode for its sink and push mode for its source. The other is a dispenser (wrongly named "mdispatch", based on tee), source pad on requests and giving buffers as pullfilter requests them.

This pipeline works like expected :
gst-launch-1.0 fakesrc can-activate-push=false ! pullfilter ! fakesink
This one also works :
gst-launch-1.0 fakesrc ! queue2 ! pullfilter ! fakesink

With two branches, no problem :
gst-launch-1.0 --gst-debug-level=3 fakesrc can-activate-push=false ! mdispatch has-chain=false name=t ! pullfilter ! fakesink t. ! pullfilter ! fakesink
But when I put a queue2 in the previous pipeline, it fails :
gst-launch-1.0 --gst-debug=pullfilter:5 fakesrc ! queue2 ! mdispatch has-chain=false name=t ! pullfilter ! fakesink t. ! pullfilter ! fakesink
Setting pipeline to PAUSED ...
mdispatch: Pull mode not supported by peer
mdispatch: Push mode activated
mdispatch: Pull mode not supported by peer
mdispatch: Push mode activated
0:00:00.011082003 11673  0x80958c0 WARN                GST_PADS gstpad.c:974:gst_pad_set_active:<t:sink> Failed to activate pad
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
Freeing pipeline ...
I doesn't see why it fails when setting a queue2 to the pipeline (I tested in previous pipeline if "queue2" in pull mode can works with fakesrc in push mode).

Is there a problem with the design ?

Thanks,
Jonathan DEMEYER
Software engineer
[Description : MACQ Traffic & Automation]

Macq sa
Rue de l'Aéronef, 2 - 1140 Bruxelles - Belgique
T +32 (0) 2 610 15 87 - F +32 (0) 2 610 15 05
jonathan.demeyer at macq.eu <mailto:.jonathan.demeyer at macq.eu> - www.macq.eu<http://www.macq.eu/>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140924/5422a369/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Macq.gif
Type: image/gif
Size: 1939 bytes
Desc: Macq.gif
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140924/5422a369/attachment-0001.gif>


More information about the gstreamer-devel mailing list