diff options
author | phintuka <phintuka> | 2010-03-21 10:44:24 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2010-03-21 10:44:24 +0000 |
commit | 147d35ee5f976a8a9bb509ef5fd6651741fa596a (patch) | |
tree | b101974034d7df40cb15644f7cbc4b9c948cee10 | |
parent | 0bf9628c93a6ea36652abed99c1972fe9af2d1e6 (diff) | |
download | xineliboutput-147d35ee5f976a8a9bb509ef5fd6651741fa596a.tar.gz xineliboutput-147d35ee5f976a8a9bb509ef5fd6651741fa596a.tar.bz2 |
metronom_exit():
use xvdr_metronom_unwire()
reduced log level
clear this->orig_metronom before calling orig_metronom->exit()
-rw-r--r-- | xine/xvdr_metronom.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/xine/xvdr_metronom.c b/xine/xvdr_metronom.c index d4246952..ac8babd2 100644 --- a/xine/xvdr_metronom.c +++ b/xine/xvdr_metronom.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xvdr_metronom.c,v 1.10 2010-03-21 10:42:39 phintuka Exp $ + * $Id: xvdr_metronom.c,v 1.11 2010-03-21 10:44:24 phintuka Exp $ * */ @@ -126,15 +126,18 @@ static void metronom_exit(metronom_t *metronom) { xvdr_metronom_t *this = (xvdr_metronom_t *)metronom; - LOGERR("xvdr_metronom: metronom_exit() called !"); + LOGMSG("xvdr_metronom: metronom_exit() called !"); /* un-hook */ - this->stream->metronom = this->orig_metronom; + this->unwire(this); this->stream = NULL; - this->orig_metronom->exit(this->orig_metronom); + if (this->orig_metronom) { + metronom_t *orig_metronom = this->orig_metronom; + this->orig_metronom = NULL; - this->orig_metronom = NULL; + orig_metronom->exit(orig_metronom); + } } /* |