[vlc-commits] [Git][videolan/vlc][master] display: fix detection of placement changes
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Jul 23 11:03:57 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
7748a05d by Steve Lhomme at 2024-07-23T10:51:31+00:00
display: fix detection of placement changes
The PlaceVideoInDisplay() result is used to check if the placement changed.
But it returns true if the placement didn't change.
- - - - -
1 changed file:
- src/video_output/display.c
Changes:
=====================================
src/video_output/display.c
=====================================
@@ -264,7 +264,7 @@ static bool PlaceVideoInDisplay(vout_display_priv_t *osys)
struct vout_display_placement place_cfg = osys->cfg.display;
vout_display_place_t prev_place = osys->src_place;
vout_display_PlacePicture(&osys->src_place, &osys->source, &place_cfg);
- return vout_display_PlaceEquals(&prev_place, &osys->src_place);
+ return !vout_display_PlaceEquals(&prev_place, &osys->src_place);
}
/*****************************************************************************
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7748a05db84fb2cfc1b710a6c3aae1cc9d5993ab
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7748a05db84fb2cfc1b710a6c3aae1cc9d5993ab
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list