ERROR from src_bin_muxer: Output width not set

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)

I have already read the posted issue with this similar topic, and found no help.
I followed this, and try to convert Makefile to CMakelist, everything worked quite well.
Then I followed this repo:
it also worked with deepstream-app command. But it failed when I used CMakelist.

** ERROR: main:655: Failed to set pipeline to PAUSED
ERROR from src_bin_muxer: Output width not set
Debug info: gstnvstreammux.c(2283): gst_nvstreammux_change_state (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstNvStreamMux:src_bin_muxer
App run failed

What possibilities could cause this error?

This error happens when the pipeline is wrong. E.g. the nvstreammux is not connected with src or sink, the properties of the plugins is set to wrong value, …

solved by fix custom plugin