[FFmpeg-cvslog] r20574 - trunk/libavformat/rtmpproto.c

kostya subversion
Sun Nov 22 09:42:56 CET 2009


Author: kostya
Date: Sun Nov 22 09:42:55 2009
New Revision: 20574

Log:
Print error when RTMP protocol can't open connection

Modified:
   trunk/libavformat/rtmpproto.c

Modified: trunk/libavformat/rtmpproto.c
==============================================================================
--- trunk/libavformat/rtmpproto.c	Sun Nov 22 09:40:55 2009	(r20573)
+++ trunk/libavformat/rtmpproto.c	Sun Nov 22 09:42:55 2009	(r20574)
@@ -590,8 +590,10 @@ static int rtmp_open(URLContext *s, cons
         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");



More information about the ffmpeg-cvslog mailing list