[Bug 735423] videodecoder: Haven't set caps to downstream when select another video track.

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Aug 26 03:30:01 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=735423
  GStreamer | gst-plugins-base | 1.2.3

--- Comment #6 from Sebastian Dröge (slomo) <slomo at coaxion.net> 2014-08-26 10:29:56 UTC ---
input-selector should send the new caps of the newly selected stream downstream
before any serialized event/query or buffer. Then the sink will get it and know
what caps to use for the following buffers. (It looks like it currently only
does that for buffers, not serialized events/queries... which would mean that
you could get the ALLOCATION query from the new video decoder before receiving
the caps of that in your sink, but that shouldn't be a problem because see
below).

Your sink should always provide a buffer pool for the caps that are specified
in the ALLOCATION query. This should be completely independent of the caps you
receive with the CAPS event. The CAPS event tells you what CAPS the buffers
that follow it should be interpreted with, the caps in the ALLOCATION query
tell you for which caps buffers should be allocated.
When you receive buffers in the sink you will be able to a) correlate buffer
pool to buffer and b) received the CAPS event for the stream of that specific
buffer some time before the buffer.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list