[mediatomb] Fix for transcoding crash.

Jon Ciesla limb at fedoraproject.org
Tue Jan 15 12:21:30 UTC 2013


commit c3ae0bb81026f0c2aeefb1cca916b03850498530
Author: Jon Ciesla <limburgher at gmail.com>
Date:   Tue Jan 15 06:18:46 2013 -0600

    Fix for transcoding crash.

 mediatomb-0.12.1-transcode-segfault.patch |   12 ++++++++++++
 mediatomb.spec                            |    7 ++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/mediatomb-0.12.1-transcode-segfault.patch b/mediatomb-0.12.1-transcode-segfault.patch
new file mode 100644
index 0000000..fa5a760
--- /dev/null
+++ b/mediatomb-0.12.1-transcode-segfault.patch
@@ -0,0 +1,12 @@
+--- src/tools.cc~	2013-01-15 06:13:14.000000000 -0600
++++ src/tools.cc	2013-01-15 06:13:50.468668167 -0600
+@@ -1223,7 +1223,8 @@
+         String param = params->get(i);
+         String newParam = param.replace(_("%in"), in);
+         newParam = newParam.replace(_("%out"), out);
+-        newParam = newParam.replace(_("%range"), range);
++	if ( range != nil)
++	    newParam = newParam.replace(_("%range"), range);
+         if (param != newParam)
+             params->set(newParam, i);
+     }
diff --git a/mediatomb.spec b/mediatomb.spec
index eb21006..5976a21 100644
--- a/mediatomb.spec
+++ b/mediatomb.spec
@@ -13,7 +13,7 @@
 Version: 0.12.1
 Summary: UPnP AV MediaServer 
 Name: mediatomb
-Release: 21%{?dist}
+Release: 22%{?dist}
 Summary: MediaTomb - UPnP AV Mediaserver for Linux
 License: GPLv2
 Group: Applications/Multimedia
@@ -41,6 +41,7 @@ Patch8: mediatomb-0.12.1.fixyoutube.patch
 Patch9: mediatomb-0.12.1.gcc47.patch
 # Add subtitles support: http://sourceforge.net/tracker/?func=detail&aid=3014026&group_id=129766&atid=715782
 Patch10: mediatomb-0.12.1-samsung_video_subtitles.patch
+Patch11: mediatomb-0.12.1-transcode-segfault.patch
 
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
 BuildRequires: automake
@@ -88,6 +89,7 @@ be found on http://www.upnp.org/.
 %patch9 -p0
 %endif
 %patch10 -p0
+%patch11 -p0
 
 %build
 # Patches affect configure.ac scripts, need to autoreconf
@@ -210,6 +212,9 @@ fi
 %endif
 
 %changelog
+* Tue Jan 15 2013 Jon Ciesla <limburgher at gmail.com> - 0.12.1-22
+- Patch to fix crash, BZ 783367.
+
 * Mon Dec 03 2012 Jon Ciesla <limburgher at gmail.com> - 0.12.1-21
 - Fix unit file typo.
 


More information about the scm-commits mailing list