vlc | branch: master | Steve Lhomme <[email protected]> | Mon Mar 25 12:56:59 2019 +0100| [8f9a137929253fe4b5b7390f1a9d57635c7469f2] | committer: Steve Lhomme
vout_display: add a helper function to compare vout_display_place_t > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8f9a137929253fe4b5b7390f1a9d57635c7469f2 --- include/vlc_vout_display.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h index 2f273689b3..ef965ebeab 100644 --- a/include/vlc_vout_display.h +++ b/include/vlc_vout_display.h @@ -443,6 +443,13 @@ typedef struct { unsigned height; } vout_display_place_t; +static inline bool vout_display_PlaceEquals(const vout_display_place_t *p1, + const vout_display_place_t *p2) +{ + return p1->x == p2->x && p1->width == p2->width && + p1->y == p2->y && p1->height == p2->height; +} + /** * Computes how to place a picture inside the display to respect * the given parameters. _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
