From b8f025a58a8dddc42442527229a20b7e45edcc22 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 11 Aug 2014 23:08:35 +0200 Subject: video: don't keep multiple pointers to hwdec info struct This makes a certain corner case simpler at a later point. --- video/decode/vd_lavc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/decode/vd_lavc.c') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index de5c1eb672..1cd4503968 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -227,7 +227,7 @@ static struct vd_lavc_hwdec *probe_hwdec(struct dec_video *vd, bool autoprobe, MP_VERBOSE(vd, "Requested hardware decoder not compiled.\n"); return NULL; } - int r = hwdec_probe(hwdec, &vd->hwdec_info, decoder); + int r = hwdec_probe(hwdec, vd->hwdec_info, decoder); if (r == HWDEC_ERR_EMULATED) { if (autoprobe) return NULL; @@ -342,7 +342,7 @@ static void init_avctx(struct dec_video *vd, const char *decoder, if (!lavc_codec) return; - ctx->hwdec_info = &vd->hwdec_info; + ctx->hwdec_info = vd->hwdec_info; ctx->pix_fmt = AV_PIX_FMT_NONE; ctx->hwdec = hwdec; -- cgit v1.2.3