[vlc-commits] transcode: cleaner es_format handling on format update

Steve Lhomme git at videolan.org
Fri Feb 8 18:09:01 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Feb  8 16:36:16 2019 +0100| [4e0d2330fb3e3668add0428d3d86b5d6ea2c1f9b] | committer: Steve Lhomme

transcode: cleaner es_format handling on format update

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4e0d2330fb3e3668add0428d3d86b5d6ea2c1f9b
---

 modules/stream_out/transcode/video.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 231300f258..1a81722027 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -73,8 +73,8 @@ static int video_update_format_decoder( decoder_t *p_dec )
         return 0;
     }
 
-    video_format_Clean( &id->decoder_out.video );
-    video_format_Copy( &id->decoder_out.video, &p_dec->fmt_out.video );
+    es_format_Clean( &id->decoder_out );
+    es_format_Copy( &id->decoder_out, &p_dec->fmt_out );
 
     /* crap, decoders resetting the whole fmtout... */
     es_format_SetMeta( &id->decoder_out, &p_dec->fmt_in );



More information about the vlc-commits mailing list