+23
@@ -0,0 +1,23 @@
|
|||||||
|
From 5ab29fa1ca3c347e21b7dc865ae971c10758d7b0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gautier Portet <gautier.portet@telespazio.com>
|
||||||
|
Date: Mon, 25 Oct 2021 14:43:53 +0200
|
||||||
|
Subject: [PATCH] Prevent crash when duration is not known or zero
|
||||||
|
|
||||||
|
Closes lp:1948670, thank Richard.
|
||||||
|
---
|
||||||
|
soundconverter/gstreamer/converter.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/soundconverter/gstreamer/converter.py b/soundconverter/gstreamer/converter.py
|
||||||
|
index 0789e54..9e97385 100644
|
||||||
|
--- a/soundconverter/gstreamer/converter.py
|
||||||
|
+++ b/soundconverter/gstreamer/converter.py
|
||||||
|
@@ -260,7 +260,7 @@ def get_progress(self):
|
||||||
|
return 0, duration
|
||||||
|
|
||||||
|
position = self._query_position()
|
||||||
|
- progress = position / duration
|
||||||
|
+ progress = position / duration if duration else 0
|
||||||
|
progress = min(max(progress, 0.0), 1.0)
|
||||||
|
return progress, duration
|
||||||
|
|
||||||
@@ -28,6 +28,9 @@
|
|||||||
<Dependency>python3-distutils-extra</Dependency>
|
<Dependency>python3-distutils-extra</Dependency>
|
||||||
<Dependency>python3-pygobject3-devel</Dependency>
|
<Dependency>python3-pygobject3-devel</Dependency>
|
||||||
</BuildDependencies>
|
</BuildDependencies>
|
||||||
|
<Patches>
|
||||||
|
<Patch level="1">Prevent_crash_when_duration_is_not_known_or_zero.patch</Patch>
|
||||||
|
</Patches>
|
||||||
</Source>
|
</Source>
|
||||||
|
|
||||||
<Package>
|
<Package>
|
||||||
@@ -55,7 +58,7 @@
|
|||||||
|
|
||||||
<History>
|
<History>
|
||||||
<Update release="3">
|
<Update release="3">
|
||||||
<Date>2021-10-23</Date>
|
<Date>2021-10-28</Date>
|
||||||
<Version>4.0.2</Version>
|
<Version>4.0.2</Version>
|
||||||
<Comment>Version bump.</Comment>
|
<Comment>Version bump.</Comment>
|
||||||
<Name>fury</Name>
|
<Name>fury</Name>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<PartOf>multimedia.misc</PartOf>
|
<PartOf>multimedia.misc</PartOf>
|
||||||
<Summary>C++ library for reading and writing MP4/M4A/AAC (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags.</Summary>
|
<Summary>C++ library for reading and writing MP4/M4A/AAC (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags.</Summary>
|
||||||
<Description>C++ library for reading and writing MP4/M4A/AAC (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags.</Description>
|
<Description>C++ library for reading and writing MP4/M4A/AAC (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags.</Description>
|
||||||
<Archive sha1sum="54b3bfba3529d34aebf1fcec79ecaaddfa9a533d" type="targz">https://github.com/Martchus/tagparser/archive/refs/tags/v10.2.0.tar.gz</Archive>
|
<Archive sha1sum="e50713f6eb044fde0199a6623f17799007abef6a" type="targz">https://github.com/Martchus/tagparser/archive/refs/tags/v10.3.1.tar.gz</Archive>
|
||||||
<BuildDependencies>
|
<BuildDependencies>
|
||||||
<Dependency>cmake</Dependency>
|
<Dependency>cmake</Dependency>
|
||||||
<Dependency>iso-codes</Dependency>
|
<Dependency>iso-codes</Dependency>
|
||||||
@@ -50,6 +50,13 @@
|
|||||||
</Files>
|
</Files>
|
||||||
</Package>
|
</Package>
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="2">
|
||||||
|
<Date>2021-10-28</Date>
|
||||||
|
<Version>10.3.1</Version>
|
||||||
|
<Comment>Version bump.</Comment>
|
||||||
|
<Name>fury</Name>
|
||||||
|
<Email>uglyside@yandex.ru</Email>
|
||||||
|
</Update>
|
||||||
<Update release="1">
|
<Update release="1">
|
||||||
<Date>2021-10-13</Date>
|
<Date>2021-10-13</Date>
|
||||||
<Version>10.2.0</Version>
|
<Version>10.2.0</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user