[MPlayer-cvslog] r34458 - trunk/stream/stream_cdda.c
reimar
subversion at mplayerhq.hu
Fri Dec 23 17:27:15 CET 2011
Author: reimar
Date: Fri Dec 23 17:27:15 2011
New Revision: 34458
Log:
Fix cdda speed default value, range and use more robust condition.
Based on patch by Ingo Brückl [ib wupperonline de].
Modified:
trunk/stream/stream_cdda.c
Modified: trunk/stream/stream_cdda.c
==============================================================================
--- trunk/stream/stream_cdda.c Fri Dec 23 15:45:35 2011 (r34457)
+++ trunk/stream/stream_cdda.c Fri Dec 23 17:27:15 2011 (r34458)
@@ -70,7 +70,7 @@ static struct cdda_params {
char* device;
m_span_t span;
} cdda_dflts = {
- -1,
+ 0,
0,
NULL,
0,
@@ -84,7 +84,7 @@ static struct cdda_params {
#define ST_OFF(f) M_ST_OFF(struct cdda_params,f)
static const m_option_t cdda_params_fields[] = {
- { "speed", ST_OFF(speed), CONF_TYPE_INT, M_OPT_RANGE,1,100, NULL },
+ { "speed", ST_OFF(speed), CONF_TYPE_INT, M_OPT_RANGE,0,100, NULL },
{ "paranoia", ST_OFF(paranoia_mode), CONF_TYPE_INT,M_OPT_RANGE, 0, 2, NULL },
{ "generic-dev", ST_OFF(generic_dev), CONF_TYPE_STRING, 0, 0, 0, NULL },
{ "sector-size", ST_OFF(sector_size), CONF_TYPE_INT, M_OPT_RANGE,1,100, NULL },
@@ -382,7 +382,7 @@ static int open_cdda(stream_t *st,int m,
cdd->disc_toc[i].dwStartSector += offset;
}
- if(p->speed)
+ if(p->speed > 0)
cdda_speed_set(cdd,p->speed);
last_track = cdda_tracks(cdd);
More information about the MPlayer-cvslog
mailing list