diff --git a/audacious-plugins-1.5.1-musepack.patch b/audacious-plugins-1.5.1-musepack.patch index c8aae82..ecb6901 100644 --- a/audacious-plugins-1.5.1-musepack.patch +++ b/audacious-plugins-1.5.1-musepack.patch @@ -1,6 +1,6 @@ diff -Nur audacious-plugins-fedora-1.5.1-orig/src/musepack/libmpc.cxx audacious-plugins-fedora-1.5.1-musepack/src/musepack/libmpc.cxx --- audacious-plugins-fedora-1.5.1-orig/src/musepack/libmpc.cxx 2008-06-08 10:37:44.000000000 +0200 -+++ audacious-plugins-fedora-1.5.1-musepack/src/musepack/libmpc.cxx 2009-11-17 20:44:19.953532318 +0100 ++++ audacious-plugins-fedora-1.5.1-musepack/src/musepack/libmpc.cxx 2009-11-17 22:36:54.888775246 +0100 @@ -52,8 +52,7 @@ static MpcDecoder mpcDecoder = {0}; static TrackInfo track = {0}; @@ -74,7 +74,7 @@ diff -Nur audacious-plugins-fedora-1.5.1-orig/src/musepack/libmpc.cxx audacious- lockRelease(); -@@ -870,13 +867,13 @@ +@@ -870,13 +867,16 @@ return endThread(filename, input, false); } @@ -87,10 +87,13 @@ diff -Nur audacious-plugins-fedora-1.5.1-orig/src/musepack/libmpc.cxx audacious- - unsigned status = mpc_decoder_decode(&decoder, sampleBuffer, &vbrAcc, &vbrUpd); + guint status = mpc_decoder_decode(&decoder, sampleBuffer, &vbrAcc, &vbrUpd); ++ if (status == (guint)(-1)) { ++ return status; ++ } copyBuffer(sampleBuffer, xmmsBuffer, status); if (pluginConfig.dynamicBitrate) -@@ -915,12 +912,12 @@ +@@ -915,12 +915,12 @@ inline static void lockAcquire() { diff --git a/audacious-plugins.spec b/audacious-plugins.spec index fbedc0a..ddd421b 100644 --- a/audacious-plugins.spec +++ b/audacious-plugins.spec @@ -4,7 +4,7 @@ Name: audacious-plugins Version: 1.5.1 -Release: 17%{?dist} +Release: 18%{?dist} Summary: Plugins for the Audacious media player Group: Applications/Multimedia @@ -287,6 +287,9 @@ update-desktop-database &> /dev/null || : %changelog +* Tue Nov 17 2009 Michael Schwendt - 1.5.1-18 +- Corrupt musepack files were abel to crash Audacious. + * Tue Nov 17 2009 Michael Schwendt - 1.5.1-17 - More cleanup in musepack plugin.