diff stream/tvi_def.h @ 32141:2802b8095bf7

Move TV input new_handle static function to tv.c and make it non-static. There is no need to pointlessly duplicate the function in the binary.
author diego
date Mon, 13 Sep 2010 18:09:29 +0000
parents 0822f7483159
children
line wrap: on
line diff
--- a/stream/tvi_def.h	Mon Sep 13 18:06:20 2010 +0000
+++ b/stream/tvi_def.h	Mon Sep 13 18:09:29 2010 +0000
@@ -45,29 +45,6 @@
     get_audio_framesize
 };
 
-static tvi_handle_t *new_handle(void)
-{
-    tvi_handle_t *h = malloc(sizeof(*h));
-
-    if (!h)
-	return NULL;
-    h->priv = calloc(1, sizeof(priv_t));
-    if (!h->priv)
-    {
-	free(h);
-	return NULL;
-    }
-
-    h->functions = &functions;
-    h->seq = 0;
-    h->chanlist = -1;
-    h->chanlist_s = NULL;
-    h->norm = -1;
-    h->channel = -1;
-    h->scan = NULL;
-    return h;
-}
-
 /**
  Fills video frame in given buffer with blue color for yv12,i420,uyvy,yuy2.
  Other formats will be filled with 0xC0