diff options
author | phintuka <phintuka> | 2010-03-13 22:31:12 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2010-03-13 22:31:12 +0000 |
commit | 718e0435d3c373993d81ee1ab629720ab8e8db12 (patch) | |
tree | b268482dc2ea2cc71f8a8dea3c44aad0274e43ec | |
parent | 22e836cedecd52e39023f50a221ff6d1a63f7334 (diff) | |
download | xineliboutput-718e0435d3c373993d81ee1ab629720ab8e8db12.tar.gz xineliboutput-718e0435d3c373993d81ee1ab629720ab8e8db12.tar.bz2 |
check_for_scaling(): Moved stream check to right branch (reported by Petri Helin)
Increased log level for invalid VDR OSD extent
-rw-r--r-- | xine/vo_osdscaler.c | 10 |
1 files 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; } |