From 7e9859c5702f2c02da58292d7295c428dc4520c0 Mon Sep 17 00:00:00 2001 From: Siggi Langauf Date: Sat, 25 Jun 2005 13:21:30 +0000 Subject: *BUGFIX* fix playback of non-multi Real RTSP streams CVS patchset: 7633 CVS date: 2005/06/25 13:21:30 --- src/input/libreal/real.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/input') diff --git a/src/input/libreal/real.c b/src/input/libreal/real.c index 2e455ce02..36387b7f1 100644 --- a/src/input/libreal/real.c +++ b/src/input/libreal/real.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: real.c,v 1.20 2004/12/15 12:53:46 miguelfreitas Exp $ + * $Id: real.c,v 1.21 2005/06/25 13:21:30 siggi Exp $ * * special functions for real streams. * adopted from joschkas real tools. @@ -489,9 +489,12 @@ rmff_header_t *real_parse_sdp(char *data, char **stream_rules, uint32_t bandwidt xine_buffer_strcat(*stream_rules, b); } - if (!desc->stream[i]->mlti_data) return NULL; - - len=select_mlti_data(desc->stream[i]->mlti_data, desc->stream[i]->mlti_data_size, rulematches[0], &buf); + 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( desc->stream[i]->stream_id, -- cgit v1.2.3