diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-05-24 13:28:33 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-05-24 13:39:54 +0200 |
commit | 897a1e93b7e224e0adea18d97d116cfc9fe360f8 (patch) | |
tree | 7b1442b91db83ce8b7403fb4dd71ad19019a0e29 /ext/cdparanoia | |
parent | 7f7fec3b8260faec8de7f02181ed2c29d2e36171 (diff) |
cdparanoia: always set the read_speed
Always set the read speed to the configured value. Clarify that 0 or -1
speed means full speed.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=676361
Diffstat (limited to 'ext/cdparanoia')
-rw-r--r-- | ext/cdparanoia/gstcdparanoiasrc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/cdparanoia/gstcdparanoiasrc.c b/ext/cdparanoia/gstcdparanoiasrc.c index fe6a098fe..66a75b292 100644 --- a/ext/cdparanoia/gstcdparanoiasrc.c +++ b/ext/cdparanoia/gstcdparanoiasrc.c @@ -143,8 +143,9 @@ gst_cd_paranoia_src_class_init (GstCdParanoiaSrcClass * klass) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_READ_SPEED, g_param_spec_int ("read-speed", "Read speed", - "Read from device at specified speed", -1, G_MAXINT, - DEFAULT_READ_SPEED, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + "Read from device at specified speed (-1 and 0 = full speed)", + -1, G_MAXINT, DEFAULT_READ_SPEED, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_PARANOIA_MODE, g_param_spec_flags ("paranoia-mode", "Paranoia mode", "Type of checking to perform", GST_TYPE_CD_PARANOIA_MODE, @@ -228,9 +229,8 @@ gst_cd_paranoia_src_open (GstAudioCdSrc * audiocdsrc, const gchar * device) if (cdda_open (src->d)) goto open_failed; - if (src->read_speed != -1) { - cdda_speed_set (src->d, src->read_speed); - } + GST_INFO_OBJECT (src, "set read speed to %d", src->read_speed); + cdda_speed_set (src->d, src->read_speed); for (i = 1; i < src->d->tracks + 1; i++) { GstAudioCdSrcTrack track = { 0, }; |