GNOME Bugzilla – Bug 709858
theoraenc: Do nothing when flushing the encoder when no caps were set
Last modified: 2013-10-14 21:18:29 UTC
In case we receive a flush event before having our caps set, we will end up trying to create a theora encoder even though we are not ready. Avoid that situation making sure we are initialized before accepting to be flushed.
Created attachment 256944 [details] [review] theoraenc: Do nothing when flushing the encoder when no caps were set
Note that flushing when no caps were set is wrong behaviour, but shit happens, and we should avoid failling when it is the case I think.
Why is flushing before caps are set wrong behaviour?
Actually it is in that particular case, we flush right from the begining, it felt wrong to me. But indeed nothing should prevent us from being able to do it.
Appart from that, is that patch OK for you?
Yes
Attachment 256944 [details] pushed as 508245d - theoraenc: Do nothing when flushing the encoder when no caps were set