baseclasses: Also check for minimum number of video-tracks

Some scenarios might only be for video files and are meaningless for
audio-only files
This commit is contained in:
Edward Hervey 2016-10-26 17:34:49 +02:00 committed by Edward Hervey
parent 99a1f3911d
commit a29f4c390c

View file

@ -1714,7 +1714,7 @@ class MediaDescriptor(Loggable):
scenario.get_min_media_duration()) scenario.get_min_media_duration())
return False return False
for track_type in ['audio', 'subtitle']: for track_type in ['audio', 'subtitle', 'video']:
if self.get_num_tracks(track_type) < scenario.get_min_tracks(track_type): if self.get_num_tracks(track_type) < scenario.get_min_tracks(track_type):
self.debug("%s -- %s | At least %s %s track needed < %s" self.debug("%s -- %s | At least %s %s track needed < %s"
% (scenario, self.get_uri(), track_type, % (scenario, self.get_uri(), track_type,