I've made some more testing and there is something that really do not
work in the libraries.
With this example:
... ! ffmpegcolorspace ! agingtv ! ffmpegcolorspace ! ...
If I pause the pipeline, remove agingtv, link the 1st ffmpeg to the
second, it will work, the agingtv will disapear.
But if I try to replace that effect by another one, I am unable to
relink the stream. The pipeline dies or freeze the whole java
process.
I tried this :
effect.disown()
pipe.remove(effect);
pipe.add(newEffect);
previous.link(newEffect);
newEffect.link(next);
And all variation by not removing, setting state of the elements to
NULL, etc... It should be simple but it is not working.
Results:
- Nothing changed
- Image freezes
- Pipe freezes
- Whole process freeses
- The stream feed dispapear from the image, but other stream are still
working.
The results are randoms and that leads me to believe that there is a
bug...
Any idea?