sbc/ldac: Improve error paths

Merged Olivier Crête requested to merge ocrete/gst-plugins-bad:ldac-sbc-error-paths into master

While review !1871 (merged), I realized that there was some non-optimal code in the sbc and ldac codecs plugins. So here are improvements.

Merge request reports