mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 03:52:25 +00:00
validate:launcher: Concider unset MediaDescriptor duration has 'infinite'
This commit is contained in:
parent
8286adc047
commit
753ba408dd
1 changed files with 1 additions and 1 deletions
|
@ -1510,7 +1510,7 @@ class MediaDescriptor(Loggable):
|
|||
if not self.can_play_reverse() and scenario.does_reverse_playback():
|
||||
return False
|
||||
|
||||
if self.get_duration() / GST_SECOND < scenario.get_min_media_duration():
|
||||
if self.get_duration() and self.get_duration() / GST_SECOND < scenario.get_min_media_duration():
|
||||
self.debug(
|
||||
"Do not run %s as %s is too short (%i < min media duation : %i",
|
||||
scenario, self.get_uri(),
|
||||
|
|
Loading…
Reference in a new issue