]> git.pld-linux.org Git - packages/gstreamer-plugins-bad.git/commitdiff
- reworked version using hints provided by v^ from #gstreamer (patch is upstream)
authorKrzysztof Krakowiak <evil@pld-linux.org>
Fri, 25 Nov 2011 13:18:44 +0000 (13:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gstreamer-plugins-bad-modplug_stereofix.patch -> 1.2

gstreamer-plugins-bad-modplug_stereofix.patch

index 287f32c11e7ff9a220b605aecfd972b3951e846d..0b31803250c38fe37e3896584caca999ab5112ca 100644 (file)
@@ -1,16 +1,34 @@
---- gst-plugins-bad-0.10.22/ext/modplug/gstmodplug.cc.orig     2011-01-07 16:30:28.000000000 +0100
-+++ gst-plugins-bad-0.10.22/ext/modplug/gstmodplug.cc  2011-11-23 12:21:07.191585028 +0100
-@@ -461,10 +461,10 @@
+From b743ce0a1dde67ecb36c64df87fca2b0a33ed835 Mon Sep 17 00:00:00 2001
+From: Krzysztof Krakowiak <krzysztof.krakowiak@gmail.com>
+Date: Wed, 23 Nov 2011 13:47:11 +0100
+Subject: [PATCH] replaced broken if-return logic for fixating rate and number
+ of channels that caused that modules were always(after
+ successfull fixation of rate) played as mono (instead of
+ stereo) by correct one with appropiate warnings.
+
+---
+ ext/modplug/gstmodplug.cc |    8 ++++----
+ 1 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/ext/modplug/gstmodplug.cc b/ext/modplug/gstmodplug.cc
+index 6faaa0c..74b3a79 100644
+--- a/ext/modplug/gstmodplug.cc
++++ b/ext/modplug/gstmodplug.cc
+@@ -466,10 +466,10 @@ gst_modplug_fixate (GstPad * pad, GstCaps * caps)
    GstStructure *structure;
  
    structure = gst_caps_get_structure (caps, 0);
 -  if (gst_structure_fixate_field_nearest_int (structure, "rate", 44100))
 -    return;
 -  if (gst_structure_fixate_field_nearest_int (structure, "channels", 2))
+-    return;
 +  if (!gst_structure_fixate_field_nearest_int (structure, "rate", 44100))
-     return;
-+  else
-+    gst_structure_fixate_field_nearest_int (structure, "channels", 2);
++    GST_WARNING_OBJECT (pad, "Failed to fixate rate to 44100");
++  if (!gst_structure_fixate_field_nearest_int (structure, "channels", 2))
++    GST_WARNING_OBJECT (pad, "Failed to fixate number of channels to stereo");
  }
  
  static gboolean
+-- 
+1.7.7.3
+
This page took 0.226802 seconds and 4 git commands to generate.