[vlc-commits] vout: remove write-only struct member
Rémi Denis-Courmont
git at videolan.org
Mon Jul 31 20:16:23 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul 31 21:06:39 2017 +0300| [e00501cacad4f4087091ddc64c9d5ab66554019b] | committer: Rémi Denis-Courmont
vout: remove write-only struct member
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e00501cacad4f4087091ddc64c9d5ab66554019b
---
src/video_output/display.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/src/video_output/display.c b/src/video_output/display.c
index 7cc8423691..e2ba863d3f 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -333,7 +333,6 @@ void vout_display_SendMouseMovedDisplayCoordinates(vout_display_t *vd, video_ori
typedef struct {
vout_thread_t *vout;
bool is_wrapper; /* Is the current display a wrapper */
- vout_display_t *wrapper; /* Vout display wrapper */
/* */
vout_display_cfg_t cfg;
@@ -1216,8 +1215,7 @@ void vout_SetDisplayViewpoint(vout_display_t *vd,
static vout_display_t *DisplayNew(vout_thread_t *vout,
const video_format_t *source,
const vout_display_state_t *state,
- const char *module,
- bool is_wrapper, vout_display_t *wrapper,
+ const char *module, bool is_wrapper,
mtime_t double_click_timeout,
mtime_t hide_timeout,
const vout_display_owner_t *owner_ptr)
@@ -1233,7 +1231,6 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
osys->vout = vout;
osys->is_wrapper = is_wrapper;
- osys->wrapper = wrapper;
vlc_mutex_init(&osys->lock);
@@ -1351,7 +1348,7 @@ vout_display_t *vout_NewDisplay(vout_thread_t *vout,
mtime_t double_click_timeout,
mtime_t hide_timeout)
{
- return DisplayNew(vout, source, state, module, false, NULL,
+ return DisplayNew(vout, source, state, module, false,
double_click_timeout, hide_timeout, NULL);
}
@@ -1542,7 +1539,7 @@ vout_display_t *vout_NewSplitter(vout_thread_t *vout,
/* */
vout_display_t *wrapper =
- DisplayNew(vout, source, state, module, true, NULL,
+ DisplayNew(vout, source, state, module, true,
double_click_timeout, hide_timeout, NULL);
if (!wrapper) {
video_splitter_Delete(splitter);
@@ -1593,7 +1590,7 @@ vout_display_t *vout_NewSplitter(vout_thread_t *vout,
vout_display_t *vd = DisplayNew(vout, &output->fmt, &ostate,
output->psz_module ? output->psz_module : module,
- false, wrapper,
+ false,
double_click_timeout, hide_timeout, &vdo);
if (!vd) {
vout_DeleteDisplay(wrapper, NULL);
More information about the vlc-commits
mailing list