SDPDEMUX : Padname stream_0 is not unique in element sdpdemux0, not adding
Detected on Linux with GStreamer 1.20.3
Start a client : gst-launch-1.0 filesrc location=file.sdp ! sdpdemux ! decodebin ! glimagesink
Start a server : gst-launch-1.0 -v gltestsrc ! glcolorconvert ! "video/x-raw(memory:GLMemory),format=NV12,width=640,height=480,framerate=30/1" ! queue ! nvh264enc ! rtph264pay config-interval=-1 ! udpsink port=5000 host=127.0.0.1 => the client connect to the stream => OK
Stop the server, re-start the server => the client do not reconnect to the stream and crash => KO
In method sdpdemux::new_session_pad, a pad with name "stream_0" is added for the first session. On server lost, no pad is removed. On the re-start, sdpdemux try to add an new pad "stream_0" but a pad still exists with this name.
- 0:00:07.899807062 3430 0x7f64a0088860 DEBUG sdpdemux gstsdpdemux.c:524:new_session_pad: got new session pad rtpbin0:recv_rtp_src_0_170610515_96
- 0:00:07.899837704 3430 0x7f64a0088860 DEBUG sdpdemux gstsdpdemux.c:532:new_session_pad: stream: 0, SSRC 170610515, PT 96
- 0:00:07.899914007 3430 0x7f64a0088860 INFO GST_PADS gstpad.c:2382:gst_pad_link_prepare: trying to link rtpbin0:recv_rtp_src_0_170610515_96 and stream_0:proxypad9
- 0:00:07.899937413 3430 0x7f64a0088860 INFO GST_PADS gstpad.c:2590:gst_pad_link_full: linked rtpbin0:recv_rtp_src_0_170610515_96 and stream_0:proxypad9, successful
- 0:00:07.899957868 3430 0x7f64a0088860 INFO GST_EVENT gstevent.c:1660:gst_event_new_reconfigure: creating reconfigure event
- 0:00:07.900016894 3430 0x7f64a0088860 INFO GST_ELEMENT_PADS gstelement.c:759:gst_element_add_pad: adding pad 'stream_0'
- (gst-launch-1.0:3430): GStreamer-CRITICAL **: 15:26:19.007: Padname stream_0 is not unique in element sdpdemux0, not adding
- 0:00:07.900147525 3430 0x7f64a0088860 INFO GST_ELEMENT_PADS gstpad.c:2137:gst_pad_unlink: unlinking rtpbin0:recv_rtp_src_0_170610515_96(0x5640a763fd90) and stream_0:proxypad9(0x7f648800c120)
- 0:00:07.900177248 3430 0x7f64a0088860 INFO GST_ELEMENT_PADS gstpad.c:2192:gst_pad_unlink: unlinked rtpbin0:recv_rtp_src_0_170610515_96 and stream_0:proxypad9
- 0:00:07.900213628 3430 0x7f64a0088860 DEBUG sdpdemux gstsdpdemux.c:570:new_session_pad: We added all streams