Commit 639a0b1a authored by kostya's avatar kostya

Print error when RTMP protocol can't open connection

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20574 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ccaa1cdb
...@@ -590,8 +590,10 @@ static int rtmp_open(URLContext *s, const char *uri, int flags) ...@@ -590,8 +590,10 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
port = RTMP_DEFAULT_PORT; port = RTMP_DEFAULT_PORT;
snprintf(buf, sizeof(buf), "tcp://%s:%d", hostname, port); snprintf(buf, sizeof(buf), "tcp://%s:%d", hostname, port);
if (url_open(&rt->stream, buf, URL_RDWR) < 0) if (url_open(&rt->stream, buf, URL_RDWR) < 0) {
av_log(LOG_CONTEXT, AV_LOG_ERROR, "Cannot open connection %s\n", buf);
goto fail; goto fail;
}
if (!is_input) { if (!is_input) {
av_log(LOG_CONTEXT, AV_LOG_ERROR, "RTMP output is not supported yet.\n"); av_log(LOG_CONTEXT, AV_LOG_ERROR, "RTMP output is not supported yet.\n");
......
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