Re: [jokosher-devel] Modifying a pipeling while in PLAYING state
- From: Laszlo Pandy <laszlok2 gmail com>
- To: Stuart Langridge <sil kryogenix org>
- Cc: Jokosher Devel List <jokosher-devel-list gnome org>, Lukas <sinisterguy gmail com>
- Subject: Re: [jokosher-devel] Modifying a pipeling while in PLAYING state
- Date: Fri, 01 Dec 2006 17:24:24 -0500
Stuart Langridge wrote:
1) The pipeline must always be in a playable state. If you unlink
something, immediately link it to something else. Currently we do a
whole lot of preparation for playing in Project.play() which will no
longer work.
2) Whenever you unlink two elements, you must block the pad first so it
doesn't complain about a non linking error. I still have to figure out
the details of this, but it should be something like
pad.set_blocked(True).
Is it worth thinking about some utility functions to abstract away the
complexity here? Or can't it be done because each caller has to do it
in a slightly different way?
sil
It might be quite similar, but it will be little things, so you would
only be abstracting one or two lines of complexity. Once we get the
first few down, it will just be a matter of looking at the ones that
work and make all other functions do the same sort of thing. Like for 2)
every time you unlink you also block. 1) will that a bit more thought.
Laszlo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]