summaryrefslogtreecommitdiffstats
path: root/gst/udp
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2008-12-13 15:34:01 +0000
committerEdward Hervey <bilboed@bilboed.com>2008-12-13 15:34:01 +0000
commit5ad613d9b97d412d657d64a25ec2ab34e964a532 (patch)
tree5fd3e37d77851d3bfca5594aeb757af04cf0f756 /gst/udp
parent57d97b4cbf02f143905ab4898da04810ebdf4a2b (diff)
Switch to using GstStaticPadTemplate.
Original commit message from CVS: * ext/flac/gstflacdec.c: (gst_flac_dec_base_init), (gst_flac_dec_init): * gst/law/alaw-decode.c: (gst_alaw_dec_base_init), (gst_alaw_dec_init): * gst/law/alaw-encode.c: (gst_alaw_enc_base_init), (gst_alaw_enc_init): * gst/law/alaw.c: (plugin_init): * gst/law/mulaw-decode.c: (gst_mulawdec_base_init), (gst_mulawdec_init): * gst/law/mulaw-encode.c: (gst_mulawenc_base_init), (gst_mulawenc_init): * gst/law/mulaw.c: (plugin_init): Switch to using GstStaticPadTemplate. * gst/udp/gstudpnetutils.c: (gst_udp_get_addr): Don't forget to free the addrinfo structure. * gst/wavparse/gstwavparse.c: (gst_wavparse_reset), (gst_wavparse_sink_activate): Don't forget to unref the GstAdapter.
Diffstat (limited to 'gst/udp')
-rw-r--r--gst/udp/gstudpnetutils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/udp/gstudpnetutils.c b/gst/udp/gstudpnetutils.c
index 07c80448..93915a5e 100644
--- a/gst/udp/gstudpnetutils.c
+++ b/gst/udp/gstudpnetutils.c
@@ -91,7 +91,7 @@ gst_udp_get_addr (const char *hostname, int port, struct sockaddr_storage *addr)
if ((ret = getaddrinfo (hostname, (port == -1) ? NULL : service, &hints,
&res)) < 0) {
- return ret;
+ goto beach;
}
nres = res;
@@ -107,8 +107,9 @@ gst_udp_get_addr (const char *hostname, int port, struct sockaddr_storage *addr)
errno = EAI_ADDRFAMILY;
ret = -1;
}
- freeaddrinfo (res);
+beach:
+ freeaddrinfo (res);
return ret;
}