From 718e0435d3c373993d81ee1ab629720ab8e8db12 Mon Sep 17 00:00:00 2001 From: phintuka Date: Sat, 13 Mar 2010 22:31:12 +0000 Subject: check_for_scaling(): Moved stream check to right branch (reported by Petri Helin) Increased log level for invalid VDR OSD extent --- xine/vo_osdscaler.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/xine/vo_osdscaler.c b/xine/vo_osdscaler.c index 21cb0935..f0c28135 100644 --- a/xine/vo_osdscaler.c +++ b/xine/vo_osdscaler.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: vo_osdscaler.c,v 1.6 2010-02-22 12:50:20 phintuka Exp $ + * $Id: vo_osdscaler.c,v 1.7 2010-03-13 22:31:12 phintuka Exp $ * */ @@ -228,12 +228,14 @@ static int check_for_scaling(osdscaler_hook_t *this, vo_frame_t *frame, vo_overl if (!overlay->rle) return 0; - if (!frame->stream || frame->stream == XINE_ANON_STREAM) - return 0; /* check for VDR OSD */ if (overlay->hili_rgb_clut != VDR_OSD_MAGIC /* not from vdr */) { LOGOSD("overlay: source not VDR"); + + if (!frame->stream || frame->stream == XINE_ANON_STREAM) + return 0; + return 0; } @@ -259,7 +261,7 @@ static int check_for_scaling(osdscaler_hook_t *this, vo_frame_t *frame, vo_overl #endif if (extent_width < 128 || extent_height < 128) { - LOGOSD("overlay: invalid extent size %dx%d", extent_width, extent_height); + LOGMSG("VDR overlay: invalid extent size %dx%d", extent_width, extent_height); return 0; } -- cgit v1.2.3