udpsrc: receive control messages only in multicast
authorPetr Kulhavy <brain@jikos.cz>
Sat, 12 Nov 2016 22:34:23 +0000 (23:34 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 14 Nov 2016 09:05:04 +0000 (11:05 +0200)
commit1fc572d7408c339a922817a1f99579d6228533df
treee6c3a7a45022e7cec9d9c1bfa92b9d6130b79946
parent55297bdbad7d5410866b72bee43f32860f9ed903
udpsrc: receive control messages only in multicast

Control messages are used only in multicast mode - to detect if the destination
address is not ours and possibly drop the packet. However in non-multicast
modes the messages are still allocated and freed even if not used. Therefore
request control messages from g_socket_receive_message() only in multicast
mode.

https://bugzilla.gnome.org/show_bug.cgi?id=772841
gst/udp/gstudpsrc.c