changeset 5377:9313acce85fc libavformat

Print error when RTMP protocol can't open connection
author kostya
date Sun, 22 Nov 2009 08:42:55 +0000
parents f31fa4114750
children c22a1e94e80f
files rtmpproto.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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");