summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2020-11-29 14:01:17 +0200
committerAvi Halachmi (:avih) <avihpit@yahoo.com>2020-11-29 14:15:51 +0200
commitd4233021c72954be195310135ca2bcca898b8e54 (patch)
treedc89033802eb9c772f5c3201adb0c496c21c1c55
parent6ebac1f794623e2b62d599f944fb91d42a7b1c3d (diff)
downloadmpv-d4233021c72954be195310135ca2bcca898b8e54.tar.bz2
mpv-d4233021c72954be195310135ca2bcca898b8e54.tar.xz
vo_tct: remove unused variable
-rw-r--r--video/out/vo_tct.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/video/out/vo_tct.c b/video/out/vo_tct.c
index b0965e14cc..bb7a84f8cb 100644
--- a/video/out/vo_tct.c
+++ b/video/out/vo_tct.c
@@ -76,7 +76,6 @@ static const struct m_sub_options vo_tct_conf = {
struct priv {
struct vo_tct_opts *opts;
size_t buffer_size;
- char *buffer;
int swidth;
int sheight;
struct mp_image *frame;
@@ -200,9 +199,6 @@ static int reconfig(struct vo *vo, struct mp_image_params *params)
p->swidth = p->dst.x1 - p->dst.x0;
p->sheight = p->dst.y1 - p->dst.y0;
- if (p->buffer)
- free(p->buffer);
-
p->sws->src = *params;
p->sws->dst = (struct mp_image_params) {
.imgfmt = IMGFMT,
@@ -257,9 +253,6 @@ static void uninit(struct vo *vo)
printf(ESC_RESTORE_CURSOR);
printf(ESC_CLEAR_SCREEN);
printf(ESC_GOTOXY, 0, 0);
- struct priv *p = vo->priv;
- if (p->buffer)
- talloc_free(p->buffer);
}
static int preinit(struct vo *vo)