previewers: Remove double initial scheduling

Desktop / GNOME / PiTiVi - Alexandru Băluț [gmail.com] - 9 February 2018 06:37 EST

_schedule_next_thumb_generation was being called twice, causing two timeouts to be created:- from _start_thumbnailing_cb,
- from __bus_message_cb because the pipeline has been PAUSED.

Now we only schedule when the pipeline has been PAUSED.

Additionally, we create the pipeline only if needed, to avoid waiting for no reason.

Differential Revision: https://phabricator.freedesktop.org/D1939

c0160a6f previewers: Remove double initial scheduling
pitivi/timeline/previewers.py | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)

Upstream: git.gnome.org


  • Share