GNOME Bugzilla – Bug 726098
sbcenc: Allow user to set channel-mode
Last modified: 2014-03-12 08:07:17 UTC
Created attachment 271511 [details] [review] sbcenc: Allow user to set channel-mode Currently, we can't set channel-mode to sbcenc. Following pipeline resunt in negotiation error: gst-launch audiotestsrc ! sbcenc ! audio/x-sbc,channels=2,channel-mode=stereo ! fakesink Log is gst_sbc_enc_set_format:<sbcenc0> fixating caps audio/x-sbc, rate=(int)44100, channels=(int)2, channel-mode=(string)stereo, blocks=(int){ 4, 8, 12, 16 }, subbands=(int){ 4, 8 }, allocation-method=(string){ snr, loudness }, bitpool=(int)[ 2, 64 ] gst_sbc_enc_set_format:<sbcenc0> Failed to fixate channel-mode for 2 channels I suggest to allow user to set channel mode and check if value is correlated with channels number and don't return error if value is already set.
commit da601be78f011f22fcedc0c5691ddf32a5eef63a Author: Aurélien Zanelli <aurelien.zanelli@parrot.com> Date: Tue Mar 11 10:32:46 2014 +0100 sbcenc: Allow user to set channel-mode Don't return error when channel-mode is already set, just check that it is coherent with number of channels. https://bugzilla.gnome.org/show_bug.cgi?id=726098