summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Stembridge <jstembridge@users.sourceforge.net>2004-01-03 17:19:39 +0000
committerJames Stembridge <jstembridge@users.sourceforge.net>2004-01-03 17:19:39 +0000
commit72f475fd59ad487c9d70d0c21c67303aba0ac788 (patch)
tree07372debc629a9eb33bceb7ec545e8446f11813d
parent3ab506d2d52c95e4ee34a793a8f29d53938b7286 (diff)
downloadxine-lib-72f475fd59ad487c9d70d0c21c67303aba0ac788.tar.gz
xine-lib-72f475fd59ad487c9d70d0c21c67303aba0ac788.tar.bz2
Second attempt at detecting end of non-live rtsp streams
CVS patchset: 5979 CVS date: 2004/01/03 17:19:39
-rw-r--r--src/input/libreal/real.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/input/libreal/real.c b/src/input/libreal/real.c
index c7f4c9793..4ba92f364 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.12 2003/12/05 15:54:58 f1rmb Exp $
+ * $Id: real.c,v 1.13 2004/01/03 17:19:39 jstembridge Exp $
*
* special functions for real streams.
* adopted from joschkas real tools.
@@ -559,14 +559,14 @@ int real_get_rdt_chunk(rtsp_t *rtsp_session, char *buffer) {
}
size=(header[1]<<12)+(header[2]<<8)+(header[3]);
flags1=header[4];
- if ((flags1==0x86)||(flags1==0x82))
- {
- lprintf("got end of stream packet: 0x%02x\n",flags1);
- return 0;
- }
if ((flags1!=0x40)&&(flags1!=0x42))
{
lprintf("got flags1: 0x%02x\n",flags1);
+ if (header[6]==0x06)
+ {
+ lprintf("got end of stream packet\n");
+ return 0;
+ }
header[0]=header[5];
header[1]=header[6];
header[2]=header[7];