From 2131a3b7f8dbfb8304475d32af2a636f28efb50b Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Fri, 23 Sep 2011 15:36:36 +0200 Subject: [PATCH] ac3parse: correctly check for ac3/e-ac3 switch https://bugzilla.gnome.org/show_bug.cgi?id=659943 --- gst/audioparsers/gstac3parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/audioparsers/gstac3parse.c b/gst/audioparsers/gstac3parse.c index b2f97643c4..f907249076 100644 --- a/gst/audioparsers/gstac3parse.c +++ b/gst/audioparsers/gstac3parse.c @@ -595,7 +595,7 @@ gst_ac3_parse_parse_frame (GstBaseParse * parse, GstBaseParseFrame * frame) } if (G_UNLIKELY (ac3parse->sample_rate != rate || ac3parse->channels != chans - || ac3parse->eac != ac3parse->eac)) { + || ac3parse->eac != eac)) { GstCaps *caps = gst_caps_new_simple (eac ? "audio/x-eac3" : "audio/x-ac3", "framed", G_TYPE_BOOLEAN, TRUE, "rate", G_TYPE_INT, rate, "channels", G_TYPE_INT, chans, NULL);