[Bug 743008] Cannot set 'socket' property of udpsink gstreamer element in iOS
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Wed Jan 28 20:05:00 PST 2015
https://bugzilla.gnome.org/show_bug.cgi?id=743008
GStreamer | gst-plugins-good | 1.4.4
--- Comment #11 from Antonis <atsakirid at gmail.com> 2015-01-28 22:51:23 UTC ---
Did some more troubleshooting. Here are some interesting notes:
>> Note #1: Tried to simplify the scenario and removed the conversion from fd -> gsocket (i.e. avoid g_socket_new_from_fd). Instead, I use gsockets all the way:
----
GSocket *gsocket = NULL;
GSocketAddress *rtp_sockaddr = NULL;
GInetAddress *inetaddr = NULL;
gsocket = g_socket_new (G_SOCKET_FAMILY_IPV4, G_SOCKET_TYPE_DATAGRAM,
G_SOCKET_PROTOCOL_UDP, NULL);
inetaddr = g_inet_address_new_any (G_SOCKET_FAMILY_IPV4);
rtp_sockaddr = g_inet_socket_address_new (inetaddr, 16384);
g_socket_bind (gsocket, rtp_sockaddr, FALSE, NULL);
g_object_set (G_OBJECT (self->sm_udpsink), "socket", gsocket, NULL);
----
Again, I get the exact same problem; this means that the problem is not with
the conversion.
>> Note #2: Instead of setting the socket property of the udpsink of my pipeline, I did that for the udpsrc (the rest of the code remains the same):
----
...
g_object_set (G_OBJECT (self->sm_udpsrc), "socket", gsocket, NULL);
----
In this scenario, I got no issues! Which is pretty strange. I mean this means
that the address family issue occurs for the udpsink but not for the udpsrc.
>> Note #3: I even tried using specifically the IP the iPhone gets from my router using rtp_sockaddr = g_inet_socket_address_new_from_string("10.0.0.10", 16384), but again the same problems.
Any ideas are most welcome
Thanks a lot in advance,
Antonis
P.S. Here's my pipeline in case you are interested:
autoaudiosrc ! capsfilter caps=audio/x-raw,rate=44100 ! audioconvert !
audioresample ! queue ! mulawenc ! rtppcmupay ! udpsink name=udp-sink udpsrc
name=udp-src
caps=\"application/x-rtp,media=audio,clock-rate=8000,encoding-name=PCMU\" !
rtppcmudepay ! mulawdec ! audioconvert ! audioresample ! autoaudiosink
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list