mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
mac-videotoolbox: Remove unreachable code to fix clang warning
This commit is contained in:
parent
4c4a4f9d9f
commit
53cfe5cb7f
@ -699,14 +699,6 @@ static bool create_encoder(struct vt_encoder *enc)
|
|||||||
enc->session = s;
|
enc->session = s;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
fail:
|
|
||||||
if (encoder_spec != NULL)
|
|
||||||
CFRelease(encoder_spec);
|
|
||||||
if (pixbuf_spec != NULL)
|
|
||||||
CFRelease(pixbuf_spec);
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void vt_destroy(void *data)
|
static void vt_destroy(void *data)
|
||||||
@ -1061,6 +1053,10 @@ static bool convert_sample_to_annexb(struct vt_encoder *enc,
|
|||||||
format_desc, 0, NULL, NULL, ¶m_count,
|
format_desc, 0, NULL, NULL, ¶m_count,
|
||||||
&nal_length_bytes);
|
&nal_length_bytes);
|
||||||
#endif
|
#endif
|
||||||
|
} else {
|
||||||
|
log_osstatus(LOG_ERROR, enc, "invalid codec type",
|
||||||
|
kCMFormatDescriptionError_ValueNotAvailable);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
// it is not clear what errors this function can return
|
// it is not clear what errors this function can return
|
||||||
// so we check the two most reasonable
|
// so we check the two most reasonable
|
||||||
|
Loading…
Reference in New Issue
Block a user