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
@ -936,7 +936,8 @@ device_disappeared:
|
|||||||
GST_ELEMENT_ERROR (asrc, RESOURCE, READ,
|
GST_ELEMENT_ERROR (asrc, RESOURCE, READ,
|
||||||
(_("Error recording from audio device. "
|
(_("Error recording from audio device. "
|
||||||
"The device has been disconnected.")), (NULL));
|
"The device has been disconnected.")), (NULL));
|
||||||
goto read_error;
|
GST_ALSA_SRC_UNLOCK (asrc);
|
||||||
|
return (guint) - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user