rtsp: Properly fail if unable to open an input RTP port

Originally committed as revision 26285 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Martin Storsjö 2011-01-09 10:47:53 +00:00
parent e6dba1d881
commit a3b058b7ba
1 changed files with 4 additions and 0 deletions

View File

@ -1093,6 +1093,10 @@ static int make_setup_request(AVFormatContext *s, const char *host, int port,
err = AVERROR_INVALIDDATA;
goto fail;
}
#else
av_log(s, AV_LOG_ERROR, "Unable to open an input RTP port\n");
err = AVERROR(EIO);
goto fail;
#endif
rtp_opened: