mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #276 from tokejepsen/2.x/feature/validate_ffmpeg
Optimize processing
This commit is contained in:
commit
ae4673a7e7
2 changed files with 7 additions and 3 deletions
|
|
@ -8,12 +8,11 @@ except ImportError:
|
|||
import errno
|
||||
|
||||
|
||||
class ValidateFFmpegInstalled(pyblish.api.Validator):
|
||||
class ValidateFFmpegInstalled(pyblish.api.ContextPlugin):
|
||||
"""Validate availability of ffmpeg tool in PATH"""
|
||||
|
||||
order = pyblish.api.ValidatorOrder
|
||||
label = 'Validate ffmpeg installation'
|
||||
families = ['review']
|
||||
optional = True
|
||||
|
||||
def is_tool(self, name):
|
||||
|
|
@ -27,7 +26,7 @@ class ValidateFFmpegInstalled(pyblish.api.Validator):
|
|||
return False
|
||||
return True
|
||||
|
||||
def process(self, instance):
|
||||
def process(self, context):
|
||||
ffmpeg_path = pype.lib.get_ffmpeg_tool_path("ffmpeg")
|
||||
self.log.info("ffmpeg path: `{}`".format(ffmpeg_path))
|
||||
if self.is_tool(ffmpeg_path) is False:
|
||||
|
|
|
|||
|
|
@ -307,6 +307,11 @@ class Controller(QtCore.QObject):
|
|||
"%s was inactive, skipping.." % instance
|
||||
)
|
||||
continue
|
||||
# Stop if was stopped
|
||||
if self.stopped:
|
||||
self.stopped = False
|
||||
yield IterationBreak("Stopped")
|
||||
|
||||
yield (plugin, instance)
|
||||
else:
|
||||
families = util.collect_families_from_instances(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue