mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
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:
parent
68f366a8d3
commit
df6031f7c6
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue