X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fvideo_output%2Fvideo_output.c;h=b83d04055d05013bee94960ef6585251b2b862a7;hb=a5e3a954b54587db0a7b47320f94ed7284122763;hp=2f6c53806c3170e9bc77c80756e9b663094b2678;hpb=f8b3ccc7f58e23b99b436cdd327993e88d691b03;p=vlc diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c index 2f6c53806c..b83d04055d 100644 --- a/src/video_output/video_output.c +++ b/src/video_output/video_output.c @@ -5,26 +5,26 @@ * It includes functions allowing to open a new thread, send pictures to a * thread, and destroy a previously oppened video output thread. ***************************************************************************** - * Copyright (C) 2000-2007 the VideoLAN team + * Copyright (C) 2000-2007 VLC authors and VideoLAN * $Id$ * * Authors: Vincent Seguin * Gildas Bazin * Laurent Aimar * - * 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. *****************************************************************************/ /***************************************************************************** @@ -120,7 +120,7 @@ static vout_thread_t *VoutCreate(vlc_object_t *object, /* Allocate descriptor */ vout_thread_t *vout = vlc_custom_create(object, sizeof(*vout) + sizeof(*vout->p), - VLC_OBJECT_GENERIC, "video output"); + "video output"); if (!vout) { video_format_Clean(&original); return NULL; @@ -470,8 +470,8 @@ int vout_GetSnapshot(vout_thread_t *vout, if (type && image_Type2Fourcc(type)) codec = image_Type2Fourcc(type); - const int override_width = var_GetInteger(vout, "snapshot-width"); - const int override_height = var_GetInteger(vout, "snapshot-height"); + const int override_width = var_InheritInteger(vout, "snapshot-width"); + const int override_height = var_InheritInteger(vout, "snapshot-height"); if (picture_Export(VLC_OBJECT(vout), image_dst, fmt, picture, codec, override_width, override_height)) { @@ -862,7 +862,7 @@ static int ThreadDisplayPreparePicture(vout_thread_t *vout, bool reuse, bool is_ vlc_mutex_unlock(&vout->p->filter.lock); - vout_statistic_Update(&vout->p->statistic, 0, lost_count); + vout_statistic_AddLost(&vout->p->statistic, lost_count); if (!picture) return VLC_EGENERIC; @@ -1056,7 +1056,7 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced) subpic); sys->display.filtered = NULL; - vout_statistic_Update(&vout->p->statistic, 1, 0); + vout_statistic_AddDisplayed(&vout->p->statistic, 1); return VLC_SUCCESS; }