diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-11-22 08:42:55 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-11-22 08:42:55 +0000 |
commit | fe52395878d4f0010829e0acfed34f3fe1972efe (patch) | |
tree | 70faf63c0f98a552570498ca3619fb962cd2fe70 | |
parent | afbacb931bcdfeea76547ad18f6c7429596fa1ef (diff) | |
download | ffmpeg-fe52395878d4f0010829e0acfed34f3fe1972efe.tar.gz |
Print error when RTMP protocol can't open connection
Originally committed as revision 20574 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/rtmpproto.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 980b2d6c8b..7b4f9eb7e7 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -590,8 +590,10 @@ static int rtmp_open(URLContext *s, const char *uri, int flags) port = RTMP_DEFAULT_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; + } if (!is_input) { av_log(LOG_CONTEXT, AV_LOG_ERROR, "RTMP output is not supported yet.\n"); |