[Mplayer-cvslog] CVS: main/libmpdemux stream.c,1.58,1.59
Alban Bedel CVS
albeu at mplayerhq.hu
Sun Apr 6 18:36:28 CEST 2003
- Previous message: [Mplayer-cvslog] CVS: main/libmpeg2 Makefile,1.8,1.9 attributes.h,1.3,1.4 header.c,1.10,1.11 idct.c,1.4,1.5 idct_mlib.c,1.2,1.3 idct_mmx.c,1.3,1.4 mmx.h,1.2,1.3 motion_comp.c,1.3,1.4 motion_comp_mlib.c,1.2,1.3 motion_comp_mmx.c,1.2,1.3 mpeg2.h,1.5,1.6 mpeg2_internal.h,1.14,1.15 slice.c,1.8,1.9 sse.h,1.1.1.1,NONEstats.c,1.2,NONE
- Next message: [Mplayer-cvslog] CVS: main/libmpdemux Makefile,1.55,1.56
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv7729/libmpdemux
Modified Files:
stream.c
Log Message:
Add netstream
A little 10L fix
Call control(STREAM_CTRL_RESET)
Close stream fd AFTER calling their close function (as some may still
need it during close)
Index: stream.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/stream.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -r1.58 -r1.59
--- stream.c 4 Apr 2003 15:41:00 -0000 1.58
+++ stream.c 6 Apr 2003 16:36:17 -0000 1.59
@@ -62,12 +62,18 @@
#ifdef HAVE_CDDA
extern stream_info_t stream_info_cdda;
#endif
+#ifdef STREAMING
+extern stream_info_t stream_info_netstream;
+#endif
extern stream_info_t stream_info_file;
stream_info_t* auto_open_streams[] = {
#ifdef HAVE_CDDA
&stream_info_cdda,
#endif
+#ifdef STREAMING
+ &stream_info_netstream,
+#endif
&stream_info_file,
NULL
};
@@ -115,7 +121,7 @@
if(s->flags & STREAM_SEEK && !s->seek)
s->flags &= ~STREAM_SEEK;
if(s->seek && !(s->flags & STREAM_SEEK))
- s->flags &= STREAM_SEEK;
+ s->flags |= STREAM_SEEK;
mp_msg(MSGT_OPEN,MSGL_V, "STREAM: [%s] %s\n",sinfo->name,filename);
@@ -370,6 +376,7 @@
// s->buf_pos=s->buf_len=0;
s->eof=0;
}
+ if(s->control) s->control(s,STREAM_CTRL_RESET,NULL);
//stream_seek(s,0);
}
@@ -412,7 +419,6 @@
shmem_free(s->cache_data);
}
#endif
- if(s->fd>0) close(s->fd);
switch(s->type) {
#ifdef LIBSMBCLIENT
case STREAMTYPE_SMB:
@@ -432,6 +438,7 @@
default:
if(s->close) s->close(s);
}
+ if(s->fd>0) close(s->fd);
// Disabled atm, i don't like that. s->priv can be anything after all
// streams should destroy their priv on close
//if(s->priv) free(s->priv);
- Previous message: [Mplayer-cvslog] CVS: main/libmpeg2 Makefile,1.8,1.9 attributes.h,1.3,1.4 header.c,1.10,1.11 idct.c,1.4,1.5 idct_mlib.c,1.2,1.3 idct_mmx.c,1.3,1.4 mmx.h,1.2,1.3 motion_comp.c,1.3,1.4 motion_comp_mlib.c,1.2,1.3 motion_comp_mmx.c,1.2,1.3 mpeg2.h,1.5,1.6 mpeg2_internal.h,1.14,1.15 slice.c,1.8,1.9 sse.h,1.1.1.1,NONEstats.c,1.2,NONE
- Next message: [Mplayer-cvslog] CVS: main/libmpdemux Makefile,1.55,1.56
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list