mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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
This commit is contained in:
parent
7f7fec3b82
commit
897a1e93b7
1 changed files with 5 additions and 5 deletions
|
@ -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, };
|
||||
|
|
Loading…
Reference in a new issue