Make sure we have an rtsp session

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25518 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
lu_zero 2007-12-24 01:54:30 +00:00
parent e91fc44d4c
commit cb0b8fa5ff
1 changed files with 3 additions and 0 deletions

View File

@ -190,6 +190,9 @@ static demuxer_t* demux_open_rtp(demuxer_t* demuxer)
return demuxer;
}
if (!ctl->rtsp_queue)
return demuxer;
media = ctl->rtsp_queue->media_queue;
for (; media; media=media->next) {
sdp_medium_info * info = media->medium_info;