From a328d9ff57e273b73458e6fdd4d9b23c4b4de3bc Mon Sep 17 00:00:00 2001 From: rtognimp Date: Sat, 11 Dec 2004 23:59:36 +0000 Subject: Fix streaming if not mlti_data (for some non-multirate streams) Also closes bug #151 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14145 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/realrtsp/real.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libmpdemux/realrtsp') diff --git a/libmpdemux/realrtsp/real.c b/libmpdemux/realrtsp/real.c index 565a9b7e8e..ae6e6fdbc0 100644 --- a/libmpdemux/realrtsp/real.c +++ b/libmpdemux/realrtsp/real.c @@ -542,8 +542,10 @@ rmff_header_t *real_parse_sdp(char *data, char **stream_rules, uint32_t bandwidt *stream_rules = xbuffer_strcat(*stream_rules, b); } - if (!desc->stream[i]->mlti_data) return NULL; - + if (!desc->stream[i]->mlti_data) { + len = 0; + buf = NULL; + } else len=select_mlti_data(desc->stream[i]->mlti_data, desc->stream[i]->mlti_data_size, rulematches[0], &buf); header->streams[i]=rmff_new_mdpr( -- cgit v1.2.3