[Bug 749567] tcpclientsrc: add timeout property

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Dec 20 11:36:15 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=749567

Nicola <lists at svrinformatica.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #304578|needs-work                  |none
             status|                            |
 Attachment #304578|0                           |1
        is obsolete|                            |

--- Comment #10 from Nicola <lists at svrinformatica.it> ---
Created attachment 342256
  --> https://bugzilla.gnome.org/attachment.cgi?id=342256&action=edit
updated patch

timeout error seems already properly handled, please take a look at the below
pipeline

time gst-launch-1.0 -vmt tcpclientsrc host=192.168.2.123 port=123 timeout=10 !
fakesink
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
Got message #3 from element "fakesink0" (state-changed):
GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL,
new-state=(GstState)GST_STATE_READY,
pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #4 from element "tcpclientsrc0" (state-changed):
GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL,
new-state=(GstState)GST_STATE_READY,
pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #5 from element "pipeline0" (state-changed):
GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL,
new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_PAUSED;
Got message #8 from element "tcpclientsrc0" (error): GstMessageError,
gerror=(GError)NULL, debug=(string)"gsttcpclientsrc.c\(458\):\
gst_tcp_client_src_start\ \(\):\
/GstPipeline:pipeline0/GstTCPClientSrc:tcpclientsrc0:\012Failed\ to\ connect\
to\ host\ \'192.168.2.123:123\':\ Socket\ I/O\ timed\ out";
ERROR: from element /GstPipeline:pipeline0/GstTCPClientSrc:tcpclientsrc0: Could
not open resource for reading.
Additional debug info:
gsttcpclientsrc.c(458): gst_tcp_client_src_start ():
/GstPipeline:pipeline0/GstTCPClientSrc:tcpclientsrc0:
Failed to connect to host '192.168.2.123:123': Socket I/O timed out
Setting pipeline to NULL ...
Freeing pipeline ...

real    0m10,058s
user    0m0,020s
sys    0m0,023s

setting timeout=0 make the pipeline waits for ever

-- 
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