[MPlayer-cvslog] r25716 - trunk/stream/tv.c

reimar subversion at mplayerhq.hu
Sun Jan 13 12:59:50 CET 2008


Author: reimar
Date: Sun Jan 13 12:59:50 2008
New Revision: 25716

Log:
Make some tvi_functions_t pointers const that I forgot to change before


Modified:
   trunk/stream/tv.c

Modified: trunk/stream/tv.c
==============================================================================
--- trunk/stream/tv.c	(original)
+++ trunk/stream/tv.c	Sun Jan 13 12:59:50 2008
@@ -207,7 +207,7 @@ static int demux_tv_fill_buffer(demuxer_
 
 static int norm_from_string(tvi_handle_t *tvh, char* norm)
 {
-    tvi_functions_t *funcs = tvh->functions;
+    const tvi_functions_t *funcs = tvh->functions;
     char str[20];
     int ret;
 
@@ -318,7 +318,7 @@ static void parse_channels(tvi_handle_t 
 static int open_tv(tvi_handle_t *tvh)
 {
     int i;
-    tvi_functions_t *funcs = tvh->functions;
+    const tvi_functions_t *funcs = tvh->functions;
     int tv_fmt_list[] = {
       IMGFMT_YV12,
       IMGFMT_I420,
@@ -622,7 +622,7 @@ static demuxer_t* demux_open_tv(demuxer_
     tvi_handle_t *tvh;
     sh_video_t *sh_video;
     sh_audio_t *sh_audio = NULL;
-    tvi_functions_t *funcs;
+    const tvi_functions_t *funcs;
 
     demuxer->priv=NULL;
     if(!(tvh=tv_begin(demuxer->stream->priv))) return NULL;
@@ -788,7 +788,7 @@ static void demux_close_tv(demuxer_t *de
 /* utilities for mplayer (not mencoder!!) */
 int tv_set_color_options(tvi_handle_t *tvh, int opt, int value)
 {
-    tvi_functions_t *funcs = tvh->functions;
+    const tvi_functions_t *funcs = tvh->functions;
 
     switch(opt)
     {
@@ -809,7 +809,7 @@ int tv_set_color_options(tvi_handle_t *t
 
 int tv_get_color_options(tvi_handle_t *tvh, int opt, int* value)
 {
-    tvi_functions_t *funcs = tvh->functions;
+    const tvi_functions_t *funcs = tvh->functions;
 
     switch(opt)
     {



More information about the MPlayer-cvslog mailing list