Commit 6d8c27f9 authored by Stephan Holljes's avatar Stephan Holljes Committed by Michael Niedermayer

libavformat/http.c: Fix missing parenthesis in http_listen()

Signed-off-by: 's avatarStephan Holljes <klaxa1337@googlemail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent eca39e29
......@@ -311,10 +311,10 @@ static int http_listen(URLContext *h, const char *uri, int flags,
ff_url_join(lower_url, sizeof(lower_url), "tcp", NULL, hostname, port,
NULL);
av_dict_set(options, "listen", "1", 0);
if (ret = ffurl_open(&s->hd, lower_url, AVIO_FLAG_READ_WRITE,
&h->interrupt_callback, options) < 0)
if ((ret = ffurl_open(&s->hd, lower_url, AVIO_FLAG_READ_WRITE,
&h->interrupt_callback, options)) < 0)
goto fail;
if (ret = ffurl_write(s->hd, header, strlen(header)) < 0)
if ((ret = ffurl_write(s->hd, header, strlen(header))) < 0)
goto fail;
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment