alsasrc: return negative value on read error

Otherwise baseaudiosrc won't go into the error code path.

https://bugzilla.gnome.org/show_bug.cgi?id=690197
This commit is contained in:
Tim-Philipp Müller 2012-12-17 20:32:52 +00:00
parent 68f366a8d3
commit df6031f7c6

View file

@ -936,7 +936,8 @@ device_disappeared:
GST_ELEMENT_ERROR (asrc, RESOURCE, READ,
(_("Error recording from audio device. "
"The device has been disconnected.")), (NULL));
goto read_error;
GST_ALSA_SRC_UNLOCK (asrc);
return (guint) - 1;
}
}