mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
rtpbin: Don't try to request the same request pad twice
This commit is contained in:
parent
c365fbddba
commit
9f256d81db
1 changed files with 0 additions and 12 deletions
|
@ -37,12 +37,6 @@ GST_START_TEST (test_cleanup_send)
|
|||
fail_unless (rtp_sink != NULL);
|
||||
ASSERT_OBJECT_REFCOUNT (rtp_sink, "rtp_sink", 2);
|
||||
|
||||
/* request again */
|
||||
rtp_sink = gst_element_get_request_pad (rtpbin, "send_rtp_sink_0");
|
||||
fail_unless (rtp_sink != NULL);
|
||||
ASSERT_OBJECT_REFCOUNT (rtp_sink, "rtp_sink", 3);
|
||||
gst_object_unref (rtp_sink);
|
||||
|
||||
/* this static pad should be created automatically now */
|
||||
rtp_src = gst_element_get_static_pad (rtpbin, "send_rtp_src_0");
|
||||
fail_unless (rtp_src != NULL);
|
||||
|
@ -58,12 +52,6 @@ GST_START_TEST (test_cleanup_send)
|
|||
fail_unless (rtcp_src != NULL);
|
||||
ASSERT_OBJECT_REFCOUNT (rtcp_src, "rtcp_src", 2);
|
||||
|
||||
/* second time */
|
||||
rtcp_src = gst_element_get_request_pad (rtpbin, "send_rtcp_src_0");
|
||||
fail_unless (rtcp_src != NULL);
|
||||
ASSERT_OBJECT_REFCOUNT (rtcp_src, "rtcp_src", 3);
|
||||
gst_object_unref (rtcp_src);
|
||||
|
||||
gst_element_release_request_pad (rtpbin, rtp_sink);
|
||||
/* we should only have our refs to the pads now */
|
||||
ASSERT_OBJECT_REFCOUNT (rtp_sink, "rtp_sink", 1);
|
||||
|
|
Loading…
Reference in a new issue