soundconverter-4.0.6

This commit is contained in:
uglyside
2025-02-10 10:41:29 +03:00
parent d23e2a1d62
commit 5516f7c1d0
3 changed files with 90 additions and 117 deletions
@@ -5,13 +5,9 @@
# See the file https://www.gnu.org/licenses/gpl-3.0.txt # See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import pythonmodules from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
def build(): def build():
pythonmodules.compile(pyVer="3") pythonmodules.compile(pyVer = "3")
def install(): def install():
pythonmodules.install(pyVer="3") pythonmodules.install(pyVer = "3")
pisitools.dodoc("AUTHORS", "PKG-INFO", "README.md")
@@ -1,23 +0,0 @@
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
+11 -11
View File
@@ -12,22 +12,16 @@
<IsA>app:gui</IsA> <IsA>app:gui</IsA>
<PartOf>multimedia.converter</PartOf> <PartOf>multimedia.converter</PartOf>
<Summary>GNOME sound converter application.</Summary> <Summary>GNOME sound converter application.</Summary>
<Description> <Description>A simple sound converter application for the GNOME environment. It reads anything the GStreamer library can read, and writes WAV, FLAC, MP3, and Ogg Vorbis files.</Description>
A simple sound converter application for the GNOME environment. It reads anything the GStreamer library can read, and writes WAV, FLAC, MP3, and Ogg Vorbis files. <Archive sha1sum="2d4839f10b50503f3cc942f3266e056fbdd624f3" type="targz">https://github.com/kassoulet/soundconverter/archive/4.0.6/soundconverter-4.0.6.tar.gz</Archive>
</Description>
<Archive sha1sum="e2cc3b035c327d086999f4d814f44cd73b3c2348" type="targz">https://launchpad.net/soundconverter/trunk/4.0.5/+download/soundconverter-4.0.5.tar.gz</Archive>
<BuildDependencies> <BuildDependencies>
<Dependency>intltool</Dependency> <Dependency>intltool</Dependency>
<Dependency>gtk3-devel</Dependency> <Dependency>python3-pygobject3</Dependency>
<Dependency>python3-devel</Dependency>
<Dependency>gstreamer-devel</Dependency>
<Dependency>desktop-file-utils</Dependency>
<Dependency>python3-setuptools</Dependency> <Dependency>python3-setuptools</Dependency>
<Dependency>python3-distutils-extra</Dependency> <Dependency>python3-distutils-extra</Dependency>
<Dependency>python3-pygobject3-devel</Dependency>
</BuildDependencies> </BuildDependencies>
<Patches> <Patches>
<!-- <Patch level="1">Prevent_crash_when_duration_is_not_known_or_zero.patch</Patch> --> <!-- <Patch level="1"></Patch> -->
</Patches> </Patches>
</Source> </Source>
@@ -35,7 +29,6 @@
<Name>soundconverter</Name> <Name>soundconverter</Name>
<RuntimeDependencies> <RuntimeDependencies>
<Dependency>gtk3</Dependency> <Dependency>gtk3</Dependency>
<Dependency>python3</Dependency>
<Dependency>gst-libav</Dependency> <Dependency>gst-libav</Dependency>
<Dependency>gst-plugins-bad</Dependency> <Dependency>gst-plugins-bad</Dependency>
<Dependency>gst-plugins-base</Dependency> <Dependency>gst-plugins-base</Dependency>
@@ -55,6 +48,13 @@
</Package> </Package>
<History> <History>
<Update release="6">
<Date>2025-02-10</Date>
<Version>4.0.6</Version>
<Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="5"> <Update release="5">
<Date>2024-08-18</Date> <Date>2024-08-18</Date>
<Version>4.0.5</Version> <Version>4.0.5</Version>