After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 759306 - rtpbin: request pads from GstRtpSession only if they do not exist
rtpbin: request pads from GstRtpSession only if they do not exist
Status: RESOLVED WONTFIX
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.6.1
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-12-10 15:05 UTC by Miguel París Díaz
Modified: 2015-12-11 13:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
rtpbin: request pads from GstRtpSession only if they do not exist (3.19 KB, patch)
2015-12-10 15:05 UTC, Miguel París Díaz
rejected Details | Review

Description Miguel París Díaz 2015-12-10 15:05:46 UTC
Created attachment 317123 [details] [review]
rtpbin: request pads from GstRtpSession only if they do not exist

If a pad is already created, gst_element_get_request_pad fails.
Comment 1 Sebastian Dröge (slomo) 2015-12-11 08:19:28 UTC
When exactly would it happen that this code is called although the pad exists already?
Comment 2 Miguel París Díaz 2015-12-11 09:29:51 UTC
For example, if you add a probe to a pad of the GstRtpSession before request a new pad for the RtpBin.
Comment 3 Sebastian Dröge (slomo) 2015-12-11 10:31:13 UTC
What part of that would request a pad twice then?
Comment 4 Miguel París Díaz 2015-12-11 11:18:00 UTC
In my case, I request the pad "recv_rtp_src" of the GstRtpSession, and when I request the "recv_rtp_src_%u" pad of the RtpBin, it requests the "recv_rtp_src" pad again.
Comment 5 Sebastian Dröge (slomo) 2015-12-11 11:30:15 UTC
Well, that's wrong. You must not request pads from the rtpsession yourself if it is to be managed by rtpbin.
Comment 6 Miguel París Díaz 2015-12-11 11:35:18 UTC
I see your point, but I need to do more things related with the GstRtpSession pads.
Do you see if this patch could cause any kind of problem?
Comment 7 Sebastian Dröge (slomo) 2015-12-11 11:54:29 UTC
It causes inconsistencies with internal assumptions of rtpbin, I don't think we want to make this a supported use case.

Why can't you request the pad via rtpbin, and then later add your probes to the rtpsession pads?
Comment 8 Miguel París Díaz 2015-12-11 12:09:59 UTC
Yes, it is another alternative, although I though that this eased the development.
Anyway, I will requests pads via RtpBin.
Thanks ;).
Comment 9 Sebastian Dröge (slomo) 2015-12-11 12:24:15 UTC
The main problem I see with supporting what you're doing is, that once we support it we have to support it forever. And it might make implementing future features more tricky, or we could easily break it by some change because it's not how anybody else is using rtpbin.

Let's close this then
Comment 10 Miguel París Díaz 2015-12-11 13:10:02 UTC
OK