Messages on multistreamed pipeline
Hello. I'm trying to use multistreamed pipeline like this:
"rtpbin buffer-mode=synced ntp-sync=true ntp-time-source=ntp latency=5000 drop-on-latency=false"
" max-ts-offset=300000000 max-ts-offset-adjustment=0 max-dropout-time=60000 max-misorder-time=20000"
" ! rtspsrc protocols=tcp location=rtsp://a***:c***@10.2******/cam/realmonitor?channel=1&subtype=0"
" name=source1 latency=5000 ntp-sync=true ntp-time-source=ntp buffer-mode=synced max-ts-offset=300000000"
" ! rtpjitterbuffer mode=synced ! rtph264depay ! h264parse ! nvh264dec ! cudaconvert"
" ! video/x-raw(memory:CUDAMemory), format=(string)BGR ! appsink name=sink1 emit-signals=true "
"rtpbin buffer-mode=synced ntp-sync=true ntp-time-source=ntp latency=5000 drop-on-latency=false"
" max-ts-offset=300000000 max-ts-offset-adjustment=0 max-dropout-time=60000 max-misorder-time=20000"
" ! rtspsrc protocols=tcp location=rtsp://a***:c***@10.2******/cam/realmonitor?channel=1&subtype=0"
" name=source2 latency=5000 ntp-sync=true ntp-time-source=ntp buffer-mode=synced max-ts-offset=300000000"
" ! rtpjitterbuffer mode=synced ! rtph264depay ! h264parse ! nvh264dec ! cudaconvert"
" ! video/x-raw(memory:CUDAMemory), format=(string)BGR ! appsink name=sink2 emit-signals=true";
But i have a problem with messages i get from this pipeline.
auto msg = gst_bus_timed_pop_filtered(streaming_pipeline_->bus, GST_CLOCK_TIME_NONE, static_cast(GST_MESSAGE_ERROR | GST_MESSAGE_EOS));
If i use only one stream in pipeline i get EOS or ERROR every time when there is some problem with a camera stream. But in case of 2 cameras i see that there is no any data from camera 2 for a long time, but no messages were received. I will only receive EOS message if there will be some problem with both cameras.
I want to get message when any problem occurs. How i can solve it? I have no ideas, please, help.
Thank you in advance!