changeset 25688:cd4af70b12ef

Make some tvi_functions_t pointers const that I forgot to change before
author reimar
date Sun, 13 Jan 2008 11:59:50 +0000
parents 054162e3608b
children 7d5823bd4517
files stream/tv.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/stream/tv.c	Sun Jan 13 11:54:13 2008 +0000
+++ b/stream/tv.c	Sun Jan 13 11:59:50 2008 +0000
@@ -207,7 +207,7 @@
 
 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 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 @@
     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 @@
 /* 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_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)
     {