[vlc-devel] [PATCH] vout_wrapper: remove local variable
Steve Lhomme
robux4 at videolabs.io
Wed Jul 12 16:51:09 CEST 2017
picture_pool_NewFromFormat() has a const on the video_format_t so we can pass
the original.
---
src/video_output/vout_wrapper.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/video_output/vout_wrapper.c b/src/video_output/vout_wrapper.c
index 310f50cdc6..b02a59891a 100644
--- a/src/video_output/vout_wrapper.c
+++ b/src/video_output/vout_wrapper.c
@@ -120,7 +120,6 @@ int vout_InitWrapper(vout_thread_t *vout)
{
vout_thread_sys_t *sys = vout->p;
vout_display_t *vd = sys->display.vd;
- video_format_t source = vd->source;
sys->display.use_dr = !vout_IsDisplayFiltered(vd);
const bool allow_dr = !vd->info.has_pictures_invalid && !vd->info.is_slow && sys->display.use_dr;
@@ -149,7 +148,7 @@ int vout_InitWrapper(vout_thread_t *vout)
sys->display_pool = display_pool;
} else if (!sys->decoder_pool) {
sys->decoder_pool =
- picture_pool_NewFromFormat(&source,
+ picture_pool_NewFromFormat(&vd->source,
__MAX(VOUT_MAX_PICTURES,
reserved_picture + decoder_picture - DISPLAY_PICTURE_COUNT));
if (!sys->decoder_pool)
--
2.12.1
More information about the vlc-devel
mailing list