[vlc-commits] video_output: remove write-only vout_device_configuration_t structure

Steve Lhomme git at videolan.org
Fri Jan 24 08:00:15 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jan 22 11:21:42 2020 +0100| [b4e016778f08243b50367739f5c5d9b6934b6c19] | committer: Steve Lhomme

video_output: remove write-only vout_device_configuration_t structure

We don't use the video_format from it anymore. Only the vout pointer was used.

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

 src/input/decoder.c              | 6 ------
 src/video_output/vout_internal.h | 5 -----
 2 files changed, 11 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 283592d875..5390e85f27 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -539,9 +539,6 @@ static int CreateVoutIfNeeded(struct decoder_owner *p_owner,
                 *pp_vout = p_owner->p_vout;
             if ( pp_dec_dev )
                 *pp_dec_dev = NULL;
-            vout_device_configuration_t cfg = {
-                .vout = p_owner->p_vout, .fmt = &p_dec->fmt_out.video,
-            };
             input_resource_GetVoutDecoderDevice( p_owner->p_resource,
                                                  p_owner->p_vout, order, pp_dec_dev );
             *order = p_owner->vout_order;
@@ -557,9 +554,6 @@ static int CreateVoutIfNeeded(struct decoder_owner *p_owner,
     vlc_mutex_unlock( &p_owner->lock );
 
     if ( pp_dec_dev ) *pp_dec_dev = NULL;
-    vout_device_configuration_t cfg = {
-        .vout = p_vout, .fmt = &p_dec->fmt_out.video,
-    };
     p_vout = input_resource_GetVoutDecoderDevice( p_owner->p_resource,
                                                   p_vout, order, pp_dec_dev );
 
diff --git a/src/video_output/vout_internal.h b/src/video_output/vout_internal.h
index b0a5e805fd..ae2ce3823b 100644
--- a/src/video_output/vout_internal.h
+++ b/src/video_output/vout_internal.h
@@ -46,11 +46,6 @@
 /**
  * Vout configuration
  */
-typedef struct {
-    vout_thread_t        *vout;
-    const video_format_t *fmt; // for the initial window dimensions
-} vout_device_configuration_t;
-
 typedef struct {
     vout_thread_t        *vout;
     vlc_clock_t          *clock;



More information about the vlc-commits mailing list