From 6b1482feb31da28def7d6b1b7ee0f70eae189b4a Mon Sep 17 00:00:00 2001 From: Martin Molnar Date: Thu, 28 May 2009 04:11:52 +0200 Subject: [PATCH] Added cancelation of contracts Signed-off-by: Martin --- libavformat/udp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavformat/udp.c b/libavformat/udp.c index c0358678f..f05d332b5 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -334,11 +334,11 @@ static int udp_write(URLContext *h, uint8_t *buf, int size) static int udp_close(URLContext *h) { UDPContext *s = h->priv_data; - int ret1, ret2; + int ret; - ret1 = frsh_send_endpoint_destroy(s->sepoint); - ret2 = frsh_receive_endpoint_destroy(s->repoint); - return (ret1 || ret2); + frsh_send_endpoint_unbind(s->sepoint); + ret = frsh_contract_cancel(s->vres); + return ret; } URLProtocol udp_protocol = { -- 2.39.2