diff options
| author | phintuka <phintuka> | 2011-11-22 09:43:27 +0000 |
|---|---|---|
| committer | phintuka <phintuka> | 2011-11-22 09:43:27 +0000 |
| commit | 02e79c6358269612ee5c1668c4fe8fea9195a4b8 (patch) | |
| tree | 134f35e15732e4fac44d80afc0daac2b6f2b05ab | |
| parent | ccfa195a7e2a0b1f1ef9a04fdf42eff1fb0f63d7 (diff) | |
| download | xineliboutput-02e79c6358269612ee5c1668c4fe8fea9195a4b8.tar.gz xineliboutput-02e79c6358269612ee5c1668c4fe8fea9195a4b8.tar.bz2 | |
xvdr_metronom_init(): check if already initialized
| -rw-r--r-- | xine/xvdr_metronom.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xine/xvdr_metronom.c b/xine/xvdr_metronom.c index 7a730f8e..fd26d766 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.13 2011-10-25 06:36:04 phintuka Exp $ + * $Id: xvdr_metronom.c,v 1.14 2011-11-22 09:43:27 phintuka Exp $ * */ @@ -222,6 +222,11 @@ static void xvdr_metronom_dispose(xvdr_metronom_t *this) xvdr_metronom_t *xvdr_metronom_init(xine_stream_t *stream) { + if (stream->metronom->get_option(stream->metronom, XVDR_METRONOM_ID) == XVDR_METRONOM_ID) { + LOGMSG("xvdr_metronom_init(): stream already hooked !"); + return stream->metronom; + } + xvdr_metronom_t *this = calloc(1, sizeof(xvdr_metronom_t)); this->stream = stream; |
