[vlc-commits] transcoder: remove filter chain owner with no callback

Steve Lhomme git at videolan.org
Thu Jul 25 12:15:08 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jul 24 15:06:09 2019 +0200| [6a4eddc75573fc4b1bd6cccf5659efb3dfe5af0f] | committer: Steve Lhomme

transcoder: remove filter chain owner with no callback

The filter owner sys is never used either.

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

 modules/stream_out/transcode/video.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 108eabada9..cc47b5e4c8 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -58,10 +58,6 @@ static int video_update_format_decoder( decoder_t *p_dec )
     vlc_object_t        *p_obj = p_owner->p_obj;
     filter_chain_t       *test_chain;
 
-    filter_owner_t filter_owner = {
-        .sys = id,
-    };
-
     vlc_mutex_lock( &id->fifo.lock );
 
     const es_format_t *p_enc_in = transcode_encoder_format_in( id->encoder );
@@ -83,7 +79,7 @@ static int video_update_format_decoder( decoder_t *p_dec )
 
     msg_Dbg( p_obj, "Checking if filter chain %4.4s -> %4.4s is possible",
                  (char *)&p_dec->fmt_out.i_codec, (char*)&p_enc_in->i_codec );
-    test_chain = filter_chain_NewVideo( p_obj, false, &filter_owner );
+    test_chain = filter_chain_NewVideo( p_obj, false, NULL );
     filter_chain_Reset( test_chain, &p_dec->fmt_out, &p_dec->fmt_out );
 
     int chain_works = filter_chain_AppendConverter( test_chain, &p_dec->fmt_out, p_enc_in );



More information about the vlc-commits mailing list