[gst-devel] Caps nego scenario that fails
omega at temple-baptist.com
Tue May 22 02:19:43 CEST 2001
In the case of a crippled osssink that's only capable of mono (according
to its padtemplate caps), the autoplugger successfully determines that the
stereo2mono element is required to convert. However, when it's connected,
no negotiation happens on either end. When data subsequently flows
through the element, it tries to pick out the caps so it knows what to do.
There are no caps, so it faults.
The problem is that the stereo2mono gets attached on the downstream side
of the autoplugcache. Connecting the elements together doesn't cause
capsnego because there are no pads set on the cache:src pad, just on the
mad:src pad, cache:sink's peer. One solution is to copy the caps across
from cache:sink to cache:src, but that's lame imo. The correct solution
is to detect that proxy nego should happen in this case, and do it.
Erik Walthinsen <omega at temple-baptist.com> - System Administrator
/ \ GStreamer - The only way to stream!
| | M E G A ***** http://gstreamer.net/ *****
More information about the gstreamer-devel