[vlc-commits] vout_wrapper: remove local variable
Steve Lhomme
git at videolan.org
Thu Jul 13 11:10:20 CEST 2017
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Tue Jul 11 13:32:07 2017 +0200| [ae681dd80a27bf81403888cfbdd01f8f92ef2c7d] | committer: Jean-Baptiste Kempf
vout_wrapper: remove local variable
picture_pool_NewFromFormat() has a const on the video_format_t so we can pass
the original.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ae681dd80a27bf81403888cfbdd01f8f92ef2c7d
---
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)
More information about the vlc-commits
mailing list