rtspsrc: not possible to skip particular stream with select-stream signal.
How to reproduce:
Attach custom handler to rtspsrc "select-stream" signal. Return FALSE from handler. Check further "pad-added" signals.
Expected:
No "pad-added" should be invoked for unselected stream.
Actual:
"pad-added" signal invoked for unselected stream.
Tested with Gstreamer 1.16.1 and GLib 2.62.0. Looks like related to recent GLib 2.62 change
Log GStreamer 1.16.1 + GLib 2.62.0(selectSourceStream is my handler returning FALSE to skip stream)
0:00:00.190302000 598 0x4f0a90 DEBUG rtspsrc gstrtspsrc.c:501:default_select_stream:<src> default handler
0:00:00.190380334 598 0x4f0a90 DEBUG rtspsrc gstrtspsrc.c:512:select_stream_accum: accum 1
0:00:00.190476334 598 0x4f0a90 INFO CCTV_RECORDER RtspRecorder.cpp:92:selectSourceStream: skip source audio stream 1
0:00:00.190548000 598 0x4f0a90 DEBUG rtspsrc gstrtspsrc.c:512:select_stream_accum: accum 0
0:00:00.190624667 598 0x4f0a90 DEBUG rtspsrc gstrtspsrc.c:501:default_select_stream:<src> default handler
0:00:00.190693000 598 0x4f0a90 DEBUG rtspsrc gstrtspsrc.c:512:select_stream_accum: accum 1
0:00:00.190792667 598 0x4f0a90 DEBUG rtspsrc gstrtspsrc.c:7201:gst_rtspsrc_setup_streams_start:<src> doing setup of stream 0x73f0ea78 with rtsp://10.0.3.12/Streaming/Channels/101/trackID=2
Log GStreamer 1.16.1 + GLib 2.56.4(selectSourceStream is my handler returning FALSE to skip stream)
0:00:00.145556155 2093 0x5a0a90 DEBUG rtspsrc gstrtspsrc.c:501:default_select_stream:<src> default handler
0:00:00.145585697 2093 0x5a0a90 DEBUG rtspsrc gstrtspsrc.c:512:select_stream_accum: accum 1
0:00:00.145622364 2093 0x5a0a90 INFO CCTV_RECORDER RtspRecorder.cpp:92:selectSourceStream: skip source audio stream 1
0:00:00.145653115 2093 0x5a0a90 DEBUG rtspsrc gstrtspsrc.c:512:select_stream_accum: accum 0
0:00:00.145680490 2093 0x5a0a90 DEBUG rtspsrc gstrtspsrc.c:501:default_select_stream:<src> default handler
0:00:00.145713533 2093 0x5a0a90 DEBUG rtspsrc gstrtspsrc.c:7160:gst_rtspsrc_setup_streams_start:<src> skipping stream 0xb3f15228, disabled by signal