зеркало из https://github.com/mozilla/cubeb.git
Merge pull request #106 from kinetiknz/bug1270004
winmm,alsa: Make requesting (unimplemented) capture stream non-fatal.
This commit is contained in:
Коммит
2b3d6dc8c4
|
@ -796,7 +796,11 @@ alsa_stream_init(cubeb * ctx, cubeb_stream ** stream, char const * stream_name,
|
|||
|
||||
assert(ctx && stream);
|
||||
|
||||
assert(!input_stream_params && "not supported.");
|
||||
if (input_stream_params) {
|
||||
/* Capture support not yet implemented. */
|
||||
return CUBEB_ERROR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
if (input_device || output_device) {
|
||||
/* Device selection not yet implemented. */
|
||||
return CUBEB_ERROR_DEVICE_UNAVAILABLE;
|
||||
|
|
|
@ -398,7 +398,11 @@ winmm_stream_init(cubeb * context, cubeb_stream ** stream, char const * stream_n
|
|||
XASSERT(context);
|
||||
XASSERT(stream);
|
||||
|
||||
XASSERT(!input_stream_params && "not supported.");
|
||||
if (input_stream_params) {
|
||||
/* Capture support not yet implemented. */
|
||||
return CUBEB_ERROR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
if (input_device || output_device) {
|
||||
/* Device selection not yet implemented. */
|
||||
return CUBEB_ERROR_DEVICE_UNAVAILABLE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче