encodebasebin: Use GST_DEBUG instead of GST_ERROR when skipping muxer
authorHou Qi <qi.hou@nxp.com>
Wed, 2 Mar 2022 04:15:19 +0000 (12:15 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 6 Mar 2022 18:15:04 +0000 (18:15 +0000)
_get_muxer() skips the muxers that do not satisfy the requirement and select
the desired one. It should not print error log, so use debug log instead.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1830>

subprojects/gst-plugins-base/gst/encoding/gstencodebasebin.c

index 0054433..a62e86a 100644 (file)
@@ -2144,7 +2144,7 @@ _get_muxer (GstEncodeBaseBin * ebin)
       GstCaps *sformat = gst_encoding_profile_get_format (sprof);
 
       if (!_factory_can_handle_caps (muxerfact, sformat, GST_PAD_SINK, FALSE)) {
-        GST_ERROR ("Skipping muxer because it can't sink caps %"
+        GST_DEBUG ("Skipping muxer because it can't sink caps %"
             GST_PTR_FORMAT, sformat);
         cansinkstreams = FALSE;
         if (sformat)