[Mplayer-cvslog] CVS: 0_90/libmpdemux tv.c,1.48,1.49

Arpi of Ize arpi at mplayerhq.hu
Mon Mar 10 17:00:41 CET 2003


Update of /cvsroot/mplayer/0_90/libmpdemux
In directory mail:/var/tmp.root/cvs-serv17724

Modified Files:
	tv.c 
Log Message:
backport: disbaled seeking, don't modify malloc()'ed stringlist


Index: tv.c
===================================================================
RCS file: /cvsroot/mplayer/0_90/libmpdemux/tv.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- tv.c	14 Jan 2003 23:15:36 -0000	1.48
+++ tv.c	10 Mar 2003 16:00:39 -0000	1.49
@@ -236,6 +236,7 @@
 
     /* Handle channels names */
     if (tv_param_channels) {
+	char** channels = tv_param_channels;
 	mp_msg(MSGT_TV, MSGL_INFO, "TV Channels names detected.\n");
 	tv_channel_list = malloc(sizeof(tv_channels_t));
 	tv_channel_list->index=1;
@@ -243,8 +244,8 @@
 	tv_channel_list->prev=NULL;
 	tv_channel_current = tv_channel_list;
 
-	while (*tv_param_channels) {
-		char* tmp = *(tv_param_channels++);
+	while (*channels) {
+		char* tmp = *(channels++);
 		char* sep = strchr(tmp,'-');
 		int i;
 		struct CHANLIST cl;
@@ -422,7 +423,7 @@
     sh_video->ds = demuxer->video;
     demuxer->video->id = 0;
 
-//    demuxer->seekable = 0;
+    demuxer->seekable = 0;
 
     /* here comes audio init */
 



More information about the MPlayer-cvslog mailing list