encodebin: Fix typo on formatter adding condition
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Fri, 30 Sep 2011 12:44:12 +0000 (09:44 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Fri, 30 Sep 2011 13:56:06 +0000 (10:56 -0300)
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

index 740c9c9..3ce67ff 100644 (file)
@@ -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);