changeset 14144:1fcb18e39ef9

Fix streaming if not mlti_data (for some non-multirate streams) Also closes bug #151
author rtognimp
date Sat, 11 Dec 2004 23:59:36 +0000
parents 9e3c885b72be
children 9c47f90ad94a
files libmpdemux/realrtsp/real.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/realrtsp/real.c	Sat Dec 11 17:02:45 2004 +0000
+++ b/libmpdemux/realrtsp/real.c	Sat Dec 11 23:59:36 2004 +0000
@@ -542,8 +542,10 @@
       *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(