mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
99a1f3911d
commit
a29f4c390c
1 changed files with 1 additions and 1 deletions
|
@ -1714,7 +1714,7 @@ class MediaDescriptor(Loggable):
|
|||
scenario.get_min_media_duration())
|
||||
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):
|
||||
self.debug("%s -- %s | At least %s %s track needed < %s"
|
||||
% (scenario, self.get_uri(), track_type,
|
||||
|
|
Loading…
Reference in a new issue