[Bug 747517] appsrc: caps cannot be changed before pipeline starts

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Apr 9 12:50:39 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=747517

Thiago Sousa Santos <thiagossantos at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thiagossantos at gmail.com

--- Comment #1 from Thiago Sousa Santos <thiagossantos at gmail.com> ---
It will use caps1 but then at the next iteration will negotiate to caps2, isn't
that what happens? It is not exactly counterintuitive as you requested 2
different caps and it will go through caps1 and then caps2. This is useful when
you do:

set_caps(caps1)
push_buffer
push_buffer
set_caps(caps2)
push_buffer
...

So what appsrc does is serialize those requests into a queue and process than
in the same order, so if you set 2 caps in a row it will push 2 caps event in a
row with the requested caps you pass.


Can you describe your use case where that happens? It could be fixed by
'overwriting' caps entries at the end of the queue when setting a new one, but
let's understand what you are trying to do.

-- 
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