Commit 590b00f3 authored by Thibault Saunier's avatar Thibault Saunier

previewers: Never pass same target as proxy when finalizing

Otherwise we might end up symlinking the cache file to itself
Reviewed-by: Alexandru Băluț's avatarAlex Băluț <alexandru.balut@gmail.com>
Differential Revision: https://phabricator.freedesktop.org/D1652
parent 57b6efe1
......@@ -1042,7 +1042,8 @@ class AudioPreviewer(Previewer, Zoomable, Loggable):
self._force_redraw = True
def _prepareSamples(self):
self._wavebin.finalize(proxy=get_proxy_target(self.ges_elem))
proxy = self.ges_elem.get_parent().get_asset().get_proxy_target()
self._wavebin.finalize(proxy=proxy)
self.samples = self._wavebin.samples
def _startRendering(self):
......
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