From a2237750892f5d69b76430173393b19a89d4d33b Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Fri, 30 Sep 2011 09:44:12 -0300 Subject: [PATCH] encodebin: Fix typo on formatter adding condition The condition is if the muxer doesn't have tag setter *and* isn't a formatter itself. Any of those two conditions makes the muxer good enough to not need a formatter. --- gst/encoding/gstencodebin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/encoding/gstencodebin.c b/gst/encoding/gstencodebin.c index 740c9c9..3ce67ff 100644 --- a/gst/encoding/gstencodebin.c +++ b/gst/encoding/gstencodebin.c @@ -1068,7 +1068,7 @@ _create_stream_group (GstEncodeBin * ebin, GstEncodingProfile * sprof, */ if (!ebin->muxer || (!gst_element_implements_interface (ebin->muxer, GST_TYPE_TAG_SETTER) - || !_has_class (ebin->muxer, "Formatter"))) { + && !_has_class (ebin->muxer, "Formatter"))) { sgroup->formatter = _get_formatter (ebin, sprof); if (sgroup->formatter) { GST_DEBUG ("Adding formatter for %" GST_PTR_FORMAT, format); -- 2.7.4