Remove unreachable return statements

This commit is contained in:
Romain Vimont 2021-11-24 21:48:57 +01:00
parent 73e0311d14
commit 92a458e846

View file

@ -217,7 +217,6 @@ sc_v4l2_sink_open(struct sc_v4l2_sink *vs) {
if (!vs->format_ctx->url) { if (!vs->format_ctx->url) {
LOGE("Could not strdup v4l2 device name"); LOGE("Could not strdup v4l2 device name");
goto error_avformat_free_context; goto error_avformat_free_context;
return false;
} }
#else #else
strncpy(vs->format_ctx->filename, vs->device_name, strncpy(vs->format_ctx->filename, vs->device_name,
@ -228,7 +227,6 @@ sc_v4l2_sink_open(struct sc_v4l2_sink *vs) {
if (!ostream) { if (!ostream) {
LOGE("Could not allocate new v4l2 stream"); LOGE("Could not allocate new v4l2 stream");
goto error_avformat_free_context; goto error_avformat_free_context;
return false;
} }
ostream->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; ostream->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;