Commit df6031f7 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

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
parent 68f366a8
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment