OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afbacb9
)
Print error when RTMP protocol can't open connection
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sun, 22 Nov 2009 08:42:55 +0000
(08:42 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sun, 22 Nov 2009 08:42:55 +0000
(08:42 +0000)
Originally committed as revision 20574 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rtmpproto.c
patch
|
blob
|
history
diff --git
a/libavformat/rtmpproto.c
b/libavformat/rtmpproto.c
index
980b2d6
..
7b4f9eb
100644
(file)
--- 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");