summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2009-03-16 09:38:23 +0000
committerphintuka <phintuka>2009-03-16 09:38:23 +0000
commite922d793e2090e3611d903667aa6847aec7bf1cd (patch)
tree8b4a98afa3e1bb8656e52ff03395885d48e8c8d7
parentcebcf96de307c91a8247719e2baeff460e3116e8 (diff)
downloadxineliboutput-e922d793e2090e3611d903667aa6847aec7bf1cd.tar.gz
xineliboutput-e922d793e2090e3611d903667aa6847aec7bf1cd.tar.bz2
Ignore OSD_Close if it is part of OSD refresh
-rw-r--r--xine/osd_manager.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/xine/osd_manager.c b/xine/osd_manager.c
index 1fcb685d..e3127024 100644
--- a/xine/osd_manager.c
+++ b/xine/osd_manager.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: osd_manager.c,v 1.9 2009-03-15 19:43:28 phintuka Exp $
+ * $Id: osd_manager.c,v 1.10 2009-03-16 09:38:23 phintuka Exp $
*
*/
@@ -294,10 +294,16 @@ static int exec_osd_close(osd_manager_impl_t *this, osd_command_t *cmd)
osd_data_t *osd = &this->osd[cmd->wnd];
int handle = osd->handle;
+ if (cmd->flags & OSDFLAG_REFRESH) {
+ LOGDBG("Ignoring OSD_Close(OSDFLAG_REFRESH)");
+ return CONTROL_OK;
+ }
+
if (handle < 0) {
LOGMSG("OSD_Close(%d): non-existing OSD !", cmd->wnd);
return CONTROL_PARAM_ERROR;
}
+
if (!ovl_manager)
return CONTROL_PARAM_ERROR;