mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-20 19:10:18 +00:00
sdp: Remove useless variables
This commit is contained in:
parent
f69ee5ca33
commit
63251255a9
1 changed files with 3 additions and 4 deletions
|
@ -385,14 +385,13 @@ is_multicast_address (const gchar * host_name)
|
||||||
struct addrinfo *ai;
|
struct addrinfo *ai;
|
||||||
struct addrinfo *res;
|
struct addrinfo *res;
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
int err;
|
|
||||||
|
|
||||||
memset (&hints, 0, sizeof (hints));
|
memset (&hints, 0, sizeof (hints));
|
||||||
hints.ai_socktype = SOCK_DGRAM;
|
hints.ai_socktype = SOCK_DGRAM;
|
||||||
|
|
||||||
g_return_val_if_fail (host_name, FALSE);
|
g_return_val_if_fail (host_name, FALSE);
|
||||||
|
|
||||||
if ((err = getaddrinfo (host_name, NULL, &hints, &res)) < 0)
|
if (getaddrinfo (host_name, NULL, &hints, &res) < 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
for (ai = res; !ret && ai; ai = ai->ai_next) {
|
for (ai = res; !ret && ai; ai = ai->ai_next) {
|
||||||
|
@ -415,7 +414,7 @@ static GstSDPStream *
|
||||||
gst_sdp_demux_create_stream (GstSDPDemux * demux, GstSDPMessage * sdp, gint idx)
|
gst_sdp_demux_create_stream (GstSDPDemux * demux, GstSDPMessage * sdp, gint idx)
|
||||||
{
|
{
|
||||||
GstSDPStream *stream;
|
GstSDPStream *stream;
|
||||||
const gchar *payload, *rtcp;
|
const gchar *payload;
|
||||||
const GstSDPMedia *media;
|
const GstSDPMedia *media;
|
||||||
const GstSDPConnection *conn;
|
const GstSDPConnection *conn;
|
||||||
|
|
||||||
|
@ -464,7 +463,7 @@ gst_sdp_demux_create_stream (GstSDPDemux * demux, GstSDPMessage * sdp, gint idx)
|
||||||
stream->multicast = is_multicast_address (stream->destination);
|
stream->multicast = is_multicast_address (stream->destination);
|
||||||
|
|
||||||
stream->rtp_port = gst_sdp_media_get_port (media);
|
stream->rtp_port = gst_sdp_media_get_port (media);
|
||||||
if ((rtcp = gst_sdp_media_get_attribute_val (media, "rtcp"))) {
|
if (gst_sdp_media_get_attribute_val (media, "rtcp")) {
|
||||||
/* FIXME, RFC 3605 */
|
/* FIXME, RFC 3605 */
|
||||||
stream->rtcp_port = stream->rtp_port + 1;
|
stream->rtcp_port = stream->rtp_port + 1;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue