summaryrefslogtreecommitdiff
path: root/xine
diff options
context:
space:
mode:
authorphintuka <phintuka>2012-03-23 18:36:29 +0000
committerphintuka <phintuka>2012-03-23 18:36:29 +0000
commit4c55cc13dd81c3ea62cd724ff654df5ebd593018 (patch)
treead5bb1eb33183e182337e8ce44be971eadc24f52 /xine
parent6277587391a6abbc6cecfc7a7795d53fde243b33 (diff)
downloadxineliboutput-4c55cc13dd81c3ea62cd724ff654df5ebd593018.tar.gz
xineliboutput-4c55cc13dd81c3ea62cd724ff654df5ebd593018.tar.bz2
Use metronom set_option() to set trick speed and still modes
Diffstat (limited to 'xine')
-rw-r--r--xine/xvdr_metronom.c24
-rw-r--r--xine/xvdr_metronom.h5
2 files changed, 12 insertions, 17 deletions
diff --git a/xine/xvdr_metronom.c b/xine/xvdr_metronom.c
index 81d2e287..b379381a 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.17 2012-03-07 07:56:02 phintuka Exp $
+ * $Id: xvdr_metronom.c,v 1.18 2012-03-23 18:36:29 phintuka Exp $
*
*/
@@ -109,6 +109,16 @@ static void set_option(metronom_t *metronom, int option, int64_t value)
return;
}
+ if (option == XVDR_METRONOM_TRICK_SPEED) {
+ this->trickspeed = value;
+ return;
+ }
+
+ if (option == XVDR_METRONOM_STILL_MODE) {
+ this->still_mode = value;
+ return;
+ }
+
this->orig_metronom->set_option(this->orig_metronom, option, value);
}
@@ -177,16 +187,6 @@ static void xvdr_metronom_reset_frames(xvdr_metronom_t *this)
this->video_frames = this->audio_frames = 0;
}
-static void xvdr_metronom_set_trickspeed(xvdr_metronom_t *this, int trickspeed)
-{
- this->trickspeed = trickspeed;
-}
-
-static void xvdr_metronom_set_still_mode(xvdr_metronom_t *this, int still_mode)
-{
- this->still_mode = still_mode;
-}
-
static void xvdr_metronom_wire(xvdr_metronom_t *this)
{
if (!this->stream) {
@@ -244,8 +244,6 @@ xvdr_metronom_t *xvdr_metronom_init(xine_stream_t *stream)
this->set_cb = xvdr_metronom_set_cb;
this->reset_frames = xvdr_metronom_reset_frames;
- this->set_trickspeed = xvdr_metronom_set_trickspeed;
- this->set_still_mode = xvdr_metronom_set_still_mode;
this->wire = xvdr_metronom_wire;
this->unwire = xvdr_metronom_unwire;
this->dispose = xvdr_metronom_dispose;
diff --git a/xine/xvdr_metronom.h b/xine/xvdr_metronom.h
index 96393a22..10e6c1af 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.9 2012-03-22 12:18:51 phintuka Exp $
+ * $Id: xvdr_metronom.h,v 1.10 2012-03-23 18:36:29 phintuka Exp $
*
*/
@@ -32,9 +32,6 @@ struct xvdr_metronom_s {
void (*reset_frames)(xvdr_metronom_t *);
void (*dispose) (xvdr_metronom_t *);
- void (*set_trickspeed)(xvdr_metronom_t *, int);
- void (*set_still_mode)(xvdr_metronom_t *, int);
-
void (*wire) (xvdr_metronom_t *);
void (*unwire) (xvdr_metronom_t *);