Commit 85de975b authored by Alexandru Băluț's avatar Alexandru Băluț

previewers: Make sure VideoPreviewer is controlled when there is work to do

The PreviewGeneratorManager class starts the previewers, but once they
are done, there was nothing to reschedule them for running if the zoom
changes, etc.

Fixes https://phabricator.freedesktop.org/T7733Reviewed-by: Thibault Saunier's avatarThibault Saunier <tsaunier@gnome.org>
Differential Revision: https://phabricator.freedesktop.org/D1919
parent b790708b
......@@ -295,7 +295,6 @@ Gst.Element.register(None, "teedthumbnailbin", Gst.Rank.NONE,
TeedThumbnailBin)
# pylint: disable=too-few-public-methods
class PreviewGeneratorManager(Loggable):
"""Manager for running the previewers."""
......@@ -612,6 +611,8 @@ class VideoPreviewer(Previewer, Zoomable, Loggable):
self.remove(thumb)
self.thumbs = thumbs
self.queue = queue
if queue:
self.become_controlled()
def _set_pixbuf(self, position, pixbuf):
"""Sets the pixbuf for the thumbnail at the specified position."""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment