X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fvideo_output%2Fvideo_epg.c;h=624caf198cf04bc4f2adf6b43eadda79a38bd038;hb=8bd0f4aed1a3d76028f50195bdd74cdef5f002f3;hp=d49ab46daeef737ff2748c7f99395d82117d587b;hpb=063357c9b3f999a8fa03cdccf50fe0b0136a823a;p=vlc diff --git a/src/video_output/video_epg.c b/src/video_output/video_epg.c index d49ab46dae..624caf198c 100644 --- a/src/video_output/video_epg.c +++ b/src/video_output/video_epg.c @@ -5,25 +5,27 @@ * * Author: Adrien Maglo * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ #ifdef HAVE_CONFIG_H # include "config.h" #endif +#include + #include #include #include @@ -69,7 +71,7 @@ static subpicture_region_t * vout_OSDEpgSlider(int x, int y, picture_t *picture = region->p_picture; - ratio = __MIN(__MAX(ratio, 0), 1); + ratio = VLC_CLIP(ratio, 0, 1); int filled_part_width = ratio * width; for (int j = 0; j < height; j++) { @@ -215,10 +217,11 @@ static int OSDEpgValidate(subpicture_t *subpic, bool has_dst_changed, const video_format_t *fmt_dst, mtime_t ts) { - VLC_UNUSED(subpic); VLC_UNUSED(ts); VLC_UNUSED(fmt_src); - VLC_UNUSED(has_dst_changed); VLC_UNUSED(fmt_dst); + VLC_UNUSED(subpic); VLC_UNUSED(ts); + VLC_UNUSED(fmt_src); VLC_UNUSED(has_src_changed); + VLC_UNUSED(fmt_dst); - if (!has_src_changed && !has_dst_changed) + if (!has_dst_changed) return VLC_SUCCESS; return VLC_EGENERIC; }