# HG changeset patch # User kostya # Date 1258879375 0 # Node ID 9313acce85fc12e877c5157a6a75f49687115aa8 # Parent f31fa4114750f73b035a1956c937f54762310eca Print error when RTMP protocol can't open connection diff -r f31fa4114750 -r 9313acce85fc rtmpproto.c --- a/rtmpproto.c Sun Nov 22 08:40:55 2009 +0000 +++ b/rtmpproto.c Sun Nov 22 08:42:55 2009 +0000 @@ -590,8 +590,10 @@ 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");