- Fix Factory build, add patches from Fedora: libunicap-0.9.12-gcc10.patch, libunicap-0.9.12-arraycmp.patch, libunicap-0.9.12-datadirname.patch, libunicap-bz641623.patch and libunicap-0.9.12-memerrs.patch OBS-URL: https://build.opensuse.org/request/show/811707 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libunicap?expand=0&rev=21
16 lines
419 B
Diff
16 lines
419 B
Diff
diff --git a/cpi/v4l2cpi/v4l2.c b/cpi/v4l2cpi/v4l2.c
|
|
index a8e0c92..ec4c8db 100644
|
|
--- a/cpi/v4l2cpi/v4l2.c
|
|
+++ b/cpi/v4l2cpi/v4l2.c
|
|
@@ -1928,6 +1928,10 @@ static unicap_status_t v4l2_capture_start( void *cpi_data )
|
|
}
|
|
|
|
handle->buffer_mgr = buffer_mgr_create( handle->fd, &handle->current_format );
|
|
+ if( !handle->buffer_mgr )
|
|
+ {
|
|
+ return STATUS_FAILURE;
|
|
+ }
|
|
|
|
handle->capture_running = 1;
|
|
|