summaryrefslogtreecommitdiff
path: root/src/input/input_v4l.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2004-08-02 12:51:07 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2004-08-02 12:51:07 +0000
commit2e2b861d367f376a67c86b7381132d5e1097d999 (patch)
tree8c3e4b9b5194e969424b964a600bdb2217d31d97 /src/input/input_v4l.c
parent9d4bd66d0f07ee930e6566a4053933de23fb6515 (diff)
downloadxine-lib-2e2b861d367f376a67c86b7381132d5e1097d999.tar.gz
xine-lib-2e2b861d367f376a67c86b7381132d5e1097d999.tar.bz2
no objections so far: committing the fine speed control patch
(in case of major trouble just revert the patch i sent to xine-devel) CVS patchset: 6871 CVS date: 2004/08/02 12:51:07
Diffstat (limited to 'src/input/input_v4l.c')
-rw-r--r--src/input/input_v4l.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/input/input_v4l.c b/src/input/input_v4l.c
index 22aea7426..dcc797fde 100644
--- a/src/input/input_v4l.c
+++ b/src/input/input_v4l.c
@@ -266,7 +266,7 @@ static int pvrscr_set_speed (scr_plugin_t *scr, int speed)
pvrscr_set_pivot( this );
this->xine_speed = speed;
- this->speed_factor = (double) speed * 90000.0 / 4.0 *
+ this->speed_factor = (double) speed * 90000.0 / XINE_FINE_SPEED_NORMAL *
this->speed_tunning;
pthread_mutex_unlock (&this->lock);
@@ -312,7 +312,7 @@ static void pvrscr_start (scr_plugin_t *scr, int64_t start_vpts)
pthread_mutex_unlock (&this->lock);
- pvrscr_set_speed (&this->scr, XINE_SPEED_NORMAL);
+ pvrscr_set_speed (&this->scr, XINE_FINE_SPEED_NORMAL);
}
static int64_t pvrscr_get_current (scr_plugin_t *scr)
@@ -349,9 +349,9 @@ static pvrscr_t* pvrscr_init (void)
this = (pvrscr_t *) xine_xmalloc(sizeof(pvrscr_t));
- this->scr.interface_version = 2;
+ this->scr.interface_version = 3;
this->scr.get_priority = pvrscr_get_priority;
- this->scr.set_speed = pvrscr_set_speed;
+ this->scr.set_fine_speed = pvrscr_set_speed;
this->scr.adjust = pvrscr_adjust;
this->scr.start = pvrscr_start;
this->scr.get_current = pvrscr_get_current;
@@ -1228,7 +1228,7 @@ static buf_element_t *v4l_plugin_read_block (input_plugin_t *this_gen, fifo_buff
buf_element_t *buf = NULL;
uint8_t *ptr;
static char video = 0;
- int speed = this->stream->xine->clock->speed;
+ int speed = _x_get_speed(this->stream);
v4l_event_handler(this);