projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15c2b99
)
multiudpsink: post error when something goes wrong
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 10 Oct 2012 08:09:37 +0000
(10:09 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 10 Oct 2012 08:09:37 +0000
(10:09 +0200)
gst/udp/gstmultiudpsink.c
patch
|
blob
|
history
diff --git
a/gst/udp/gstmultiudpsink.c
b/gst/udp/gstmultiudpsink.c
index
8bb05cb
..
a364493
100644
(file)
--- a/
gst/udp/gstmultiudpsink.c
+++ b/
gst/udp/gstmultiudpsink.c
@@
-541,14
+541,19
@@
no_data:
}
send_error:
{
- GstFlowReturn res
= GST_FLOW_ERROR
;
+ GstFlowReturn res;
g_mutex_unlock (&sink->client_lock);
GST_DEBUG ("got send error %s", err->message);
if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CANCELLED))
res = GST_FLOW_FLUSHING;
-
+ else {
+ res = GST_FLOW_ERROR;
+ GST_ELEMENT_ERROR (sink, RESOURCE, SETTINGS, (NULL),
+ ("Error sending UDP packet: %s",
+ err ? err->message : "unknown reason"));
+ }
g_clear_error (&err);
return res;
}