From ea7a7a25347d1e4a741fe648e4fce24b395581e3 Mon Sep 17 00:00:00 2001 From: phintuka Date: Sun, 13 Feb 2011 14:21:55 +0000 Subject: Added a method to detect intercepted metronom --- xine/xvdr_metronom.c | 5 ++++- xine/xvdr_metronom.h | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/xine/xvdr_metronom.c b/xine/xvdr_metronom.c index ac8babd2..8d230865 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.11 2010-03-21 10:44:24 phintuka Exp $ + * $Id: xvdr_metronom.c,v 1.12 2011-02-13 14:21:55 phintuka Exp $ * */ @@ -112,6 +112,9 @@ static int64_t get_option(metronom_t *metronom, int option) if (option == XVDR_METRONOM_STILL_MODE) { return this->still_mode; } + if (option == XVDR_METRONOM_ID) { + return XVDR_METRONOM_ID; + } return this->orig_metronom->get_option(this->orig_metronom, option); } diff --git a/xine/xvdr_metronom.h b/xine/xvdr_metronom.h index 487022ef..42badd70 100644 --- a/xine/xvdr_metronom.h +++ b/xine/xvdr_metronom.h @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xvdr_metronom.h,v 1.6 2010-02-19 13:44:57 phintuka Exp $ + * $Id: xvdr_metronom.h,v 1.7 2011-02-13 14:21:55 phintuka Exp $ * */ @@ -15,6 +15,7 @@ #define XVDR_METRONOM_LAST_VO_PTS 0x1001 #define XVDR_METRONOM_TRICK_SPEED 0x1002 #define XVDR_METRONOM_STILL_MODE 0x1003 +#define XVDR_METRONOM_ID 0x1004 typedef struct xvdr_metronom_s xvdr_metronom_t; -- cgit v1.2.3