summaryrefslogtreecommitdiffstats
path: root/stream/tv.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/tv.c')
-rw-r--r--stream/tv.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/stream/tv.c b/stream/tv.c
index cb1fe59fee..55b7033adb 100644
--- a/stream/tv.c
+++ b/stream/tv.c
@@ -80,6 +80,17 @@ static const tvi_info_t* tvi_driver_list[]={
NULL
};
+void tv_free_handle(tvi_handle_t *h)
+{
+ if (h) {
+ if (h->priv)
+ free(h->priv);
+ if (h->scan)
+ free(h->scan);
+ free(h);
+ }
+}
+
void tv_start_scan(tvi_handle_t *tvh, int start)
{
mp_msg(MSGT_TV,MSGL_INFO,"start scan\n");