[gstreamer-bugs] [Bug 539372] udpsrc do not set port properly on anonymous binding
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Wed Jun 25 00:48:57 PDT 2008
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=539372
GStreamer | gst-plugins-good | Ver: HEAD CVS
Aurelien Grimaud changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |UNCONFIRMED
------- Comment #2 from Aurelien Grimaud 2008-06-25 07:48 UTC -------
For the rtsp part of bug #539548, yes, this is the same.
Actually, rtsp creates 2 udpsrc.
The first one is bound anonymous (port 0) for RTP.
The second one for RTCP is bound on port + 1.
The port is retrieved from udpsrc0 property port.
As it is not set properly on anonymous binding, udpsrc0->port is still 0.
GST_DEBUG=udpsrc:4 gst-launch udpsrc port=0
says "bound, on port 0"
Then, RTCP port is 1 and trying to bind a socket on port 1 is only allowed for
root !
So rtsp element will fail for any non root user.
There is just a getsockname to do after the anonymous binding in udpsrc to fix
it.
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=539372.
More information about the Gstreamer-bugs
mailing list