rtmpproto: Print the error code string if there's no description
authorMartin Storsjö <martin@martin.st>
Thu, 3 Oct 2013 05:44:51 +0000 (07:44 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 4 Oct 2013 06:25:04 +0000 (09:25 +0300)
commita6b361325f2bfc8d9d4e5f761d6c1a07b209c4fb
treec0018d55f624dbca6fba08adb48c186fbd4dc14f
parentb2bed9325dbd6be0da1d91ffed3f513c40274fd2
rtmpproto: Print the error code string if there's no description

On (certain streams/setups at least on) Red5, the description string
actually is present, but empty. Therefore, first try loading the
description, but if not found or empty, load the code string instead.
The code string is quite understandable in most cases anyway (like
"NetStream.Play.StreamNotFound").

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtmpproto.c