From: Felix Domke Date: Wed, 29 Nov 2006 22:04:23 +0000 (+0000) Subject: force channels to 2, should/could fix mono mp3 X-Git-Tag: 2.6.0~2653 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/ce9a39dcd70a49c1348b0ffaac61e01d4f9555e2 force channels to 2, should/could fix mono mp3 --- diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp index c415742e..e7898416 100644 --- a/lib/service/servicemp3.cpp +++ b/lib/service/servicemp3.cpp @@ -153,7 +153,7 @@ eServiceMP3::eServiceMP3(const char *filename): m_filename(filename), m_pump(eAp /* endianness, however, is not required to be set anymore. */ if (flt) { - GstCaps *caps = gst_caps_new_simple("audio/x-raw-int", /* "endianness", G_TYPE_INT, 4321, */ "depth", G_TYPE_INT, 16, "width", G_TYPE_INT, 16, (char*)0); + GstCaps *caps = gst_caps_new_simple("audio/x-raw-int", /* "endianness", G_TYPE_INT, 4321, */ "depth", G_TYPE_INT, 16, "width", G_TYPE_INT, 16, "channels", G_TYPE_INT, 2, (char*)0); g_object_set (G_OBJECT (flt), "caps", caps, (char*)0); gst_caps_unref(caps); }