[SCM] libav/experimental: Print error when RTMP protocol can't open connection
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:54:43 UTC 2013
The following commit has been merged in the experimental branch:
commit fe52395878d4f0010829e0acfed34f3fe1972efe
Author: Kostya Shishkov <kostya.shishkov at gmail.com>
Date: Sun Nov 22 08:42:55 2009 +0000
Print error when RTMP protocol can't open connection
Originally committed as revision 20574 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 980b2d6..7b4f9eb 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");
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list