summaryrefslogtreecommitdiff
path: root/libavformat/rtmpproto.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-04 00:35:32 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-04 00:35:32 +0100
commit09711545f5d256bd3ac77004d123dae36c5db8f9 (patch)
treea60402286e9e7bb65c003d97eeb27e27751018c3 /libavformat/rtmpproto.c
parentdb0471c40f0fb30355c07cca5fe7317ab6778b5a (diff)
avformat/rtmpproto: Do not fail when the length cannot be determined for live streams
Fixes Ticket4071 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtmpproto.c')
-rw-r--r--libavformat/rtmpproto.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 72d6341b12..b11c883c2b 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -1822,6 +1822,11 @@ static int handle_invoke_error(URLContext *s, RTMPPacket *pkt)
/* Gracefully ignore Adobe-specific historical artifact errors. */
level = AV_LOG_WARNING;
ret = 0;
+ } else if (rt->live &&
+ tracked_method &&
+ !strcmp(tracked_method, "getStreamLength")) {
+ level = AV_LOG_DEBUG;
+ ret = 0;
} else if (tracked_method && !strcmp(tracked_method, "connect")) {
ret = handle_connect_error(s, tmpstr);
if (!ret) {