mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-07 08:39:01 +00:00
Remove unreachable return statements
This commit is contained in:
parent
73e0311d14
commit
92a458e846
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue