From: Martin Molnar Date: Thu, 28 May 2009 02:11:52 +0000 (+0200) Subject: Added cancelation of contracts X-Git-Url: http://rtime.felk.cvut.cz/gitweb/frescor/ffmpeg.git/commitdiff_plain/6b1482feb31da28def7d6b1b7ee0f70eae189b4a Added cancelation of contracts Signed-off-by: Martin --- 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 = {