[vlc-commits] d3d9_fmt: remove write only parameters from d3d9_device_t

Steve Lhomme git at videolan.org
Wed Mar 4 16:06:43 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Mar  3 09:21:39 2020 +0100| [4eb3c7c6fca631c6bbc74088f60c8bed1cc043c6] | committer: Steve Lhomme

d3d9_fmt: remove write only parameters from d3d9_device_t

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

 modules/video_chroma/d3d9_fmt.c | 3 ---
 modules/video_chroma/d3d9_fmt.h | 2 --
 2 files changed, 5 deletions(-)

diff --git a/modules/video_chroma/d3d9_fmt.c b/modules/video_chroma/d3d9_fmt.c
index fed4831757..8c72801dde 100644
--- a/modules/video_chroma/d3d9_fmt.c
+++ b/modules/video_chroma/d3d9_fmt.c
@@ -105,7 +105,6 @@ int D3D9_ResetDevice(vlc_object_t *o, d3d9_decoder_device_t *dec_dev)
         msg_Err(o, "IDirect3DDevice9_Reset failed! (hr=0x%lX)", hr);
         return VLC_EGENERIC;
     }
-    dec_dev->d3ddev.BufferFormat = d3dpp.BackBufferFormat;
     return VLC_SUCCESS;
 }
 
@@ -301,8 +300,6 @@ d3d9_handle_t *hd3d = &sys->dec_device.hd3d;
                                              &d3dpp, &out->dev);
             if (SUCCEEDED(hr))
             {
-                out->BufferFormat = d3dpp.BackBufferFormat;
-                out->owner = true;
                 return &sys->dec_device;
             }
         }
diff --git a/modules/video_chroma/d3d9_fmt.h b/modules/video_chroma/d3d9_fmt.h
index 727b4ac692..0cfe080694 100644
--- a/modules/video_chroma/d3d9_fmt.h
+++ b/modules/video_chroma/d3d9_fmt.h
@@ -60,10 +60,8 @@ typedef struct
         IDirect3DDevice9    *dev;
         IDirect3DDevice9Ex  *devex;
     };
-    bool                    owner;
 
     /* creation parameters */
-    D3DFORMAT               BufferFormat;
     UINT                    adapterId;
 
     D3DCAPS9                caps;



More information about the vlc-commits mailing list