net: keep GCancellable fd around instead of re-creating it constantly
authorTim-Philipp Müller <tim@centricular.com>
Tue, 19 May 2015 13:34:04 +0000 (14:34 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 19 May 2015 13:34:04 +0000 (14:34 +0100)
commitd71f5c7d73fbeee1c5271e10b98450b00e653d36
tree6e179eef6ca4c763d99f45106b5137a5f0ae2301
parent19e5356afd84869068d29e3f1bf065f4f5c3f716
net: keep GCancellable fd around instead of re-creating it constantly

Just create the cancellable fd once and keep it around instead
of creating/closing it for every single packet. Since we spend
most time waiting for packets, an fd is alloced and in use pretty
much all the time anyway.
libs/gst/net/gstnetclientclock.c
libs/gst/net/gstnettimeprovider.c