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 536903 - udpsrc now assumes one is using multicast
udpsrc now assumes one is using multicast
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: 0.10.9
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-06-05 22:17 UTC by Olivier Crête
Modified: 2008-06-14 15:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
check for multicast group/ip before doing anything... (1.10 KB, patch)
2008-06-05 22:27 UTC, Olivier Crête
none Details | Review

Description Olivier Crête 2008-06-05 22:17:48 UTC
The latest patches to udpsrc assumes that it is using multicast (and as such break farsight).

I'm attaching a patch that check if the multicast group and port are set before doing any multicast stuff
Comment 1 Olivier Crête 2008-06-05 22:27:07 UTC
Created attachment 112248 [details] [review]
check for multicast group/ip before doing anything...

Actually, now that I look at it more, it seems all wrong, src->myaddr is never set if there is no multicast address, so its impossible to use ipv6 (there should be a property for ipv6 I guess).
Comment 2 Sebastian Dröge (slomo) 2008-06-09 09:33:02 UTC
So as I understand you this patch only makes things a bit saner but more work is needed?
Comment 3 Wim Taymans 2008-06-13 09:59:44 UTC
It seems broken when you provide an external fd.
Comment 4 Wim Taymans 2008-06-13 11:54:20 UTC
        * gst/udp/gstudpsrc.c: (gst_udpsrc_class_init), (gst_udpsrc_init),
        (gst_udpsrc_create), (gst_udpsrc_set_property),
        (gst_udpsrc_get_property), (gst_udpsrc_start), (gst_udpsrc_stop):
        * gst/udp/gstudpsrc.h:
        Add property to control automatic join/leave of multicast groups.
        Add G_LIKELY.
        Remove setting caps on buffers explicitly, basesrc does that for us now.
        Improve debug info.
        Convert some non-fatal error into warnings.
        Use g_ntohs for better portability.
        Leave multicast groups when stopping.
        When using external sockets, use getsockname() on them to fill up the
        addr structure before calling methods that use the structure.
        Should all fix #536903.
        API: GstUDPSrc::auto-multicast property
Comment 5 Olivier Crête 2008-06-13 18:40:08 UTC
Can we default auto-multicast to FALSE, otherwise it "breaks" the abi..
Comment 6 Wim Taymans 2008-06-14 11:13:41 UTC
Oh really? I thought it always automatically joined multicast groups before.
Comment 7 Wim Taymans 2008-06-14 11:31:05 UTC
Maybe it did not join automatically for external fds because there was a bug. In that case I'm happy with making don't-join the default for external fds (is that at all possible?)
Comment 8 Olivier Crête 2008-06-14 15:39:33 UTC
Well, it should not join if no multicast group is set...
Comment 9 Olivier Crête 2008-06-14 15:40:02 UTC
Instead of having a auto-multicast property