comparison stream/tv.c @ 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 c08363dc5320
children b39155e98ac3
comparison
equal deleted inserted replaced
32140:0822f7483159 32141:2802b8095bf7
78 &tvi_info_dshow, 78 &tvi_info_dshow,
79 #endif 79 #endif
80 &tvi_info_dummy, 80 &tvi_info_dummy,
81 NULL 81 NULL
82 }; 82 };
83
84 tvi_handle_t *tv_new_handle(int size, const tvi_functions_t *functions)
85 {
86 tvi_handle_t *h = malloc(sizeof(*h));
87
88 if (!h)
89 return NULL;
90
91 h->priv = calloc(1, size);
92
93 if (!h->priv) {
94 free(h);
95 return NULL;
96 }
97
98 h->functions = functions;
99 h->seq = 0;
100 h->chanlist = -1;
101 h->chanlist_s = NULL;
102 h->norm = -1;
103 h->channel = -1;
104 h->scan = NULL;
105
106 return h;
107 }
83 108
84 void tv_free_handle(tvi_handle_t *h) 109 void tv_free_handle(tvi_handle_t *h)
85 { 110 {
86 if (h) { 111 if (h) {
87 if (h->priv) 112 if (h->priv)