summaryrefslogtreecommitdiff
authorStefan Kost <ensonic@users.sf.net>2009-03-31 08:50:41 (GMT)
committer Stefan Kost <ensonic@users.sf.net>2009-03-31 08:50:41 (GMT)
commitba2c10196354cca88955b8020c0c511109949a05 (patch) (side-by-side diff)
tree2f1f23e8d3e00905365af36f4ce125ec150a366c
parent6e5f789fa029f434213871415c3438d0ad6db500 (diff)
downloadgst-plugins-good-ba2c10196354cca88955b8020c0c511109949a05.zip
gst-plugins-good-ba2c10196354cca88955b8020c0c511109949a05.tar.gz
udp: don't use protocol in debug message after freeing
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--gst/udp/gstudpsink.c2
-rw-r--r--gst/udp/gstudpsrc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gst/udp/gstudpsink.c b/gst/udp/gstudpsink.c
index a9666ed..cc5c84d 100644
--- a/gst/udp/gstudpsink.c
+++ b/gst/udp/gstudpsink.c
@@ -223,9 +223,9 @@ gst_udpsink_set_uri (GstUDPSink * sink, const gchar * uri)
/* ERRORS */
wrong_protocol:
{
- g_free (protocol);
GST_ELEMENT_ERROR (sink, RESOURCE, READ, (NULL),
("error parsing uri %s: wrong protocol (%s != udp)", uri, protocol));
+ g_free (protocol);
return FALSE;
}
}
diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c
index df2b893..c84e46c 100644
--- a/gst/udp/gstudpsrc.c
+++ b/gst/udp/gstudpsrc.c
@@ -645,9 +645,9 @@ gst_udpsrc_set_uri (GstUDPSrc * src, const gchar * uri)
/* ERRORS */
wrong_protocol:
{
- g_free (protocol);
GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL),
("error parsing uri %s: wrong protocol (%s != udp)", uri, protocol));
+ g_free (protocol);
return FALSE;
}
}