Fix opus and flac audio sources, fix crash when live streaming without an audio source

This commit is contained in:
dec05eba
2023-12-03 00:59:07 +01:00
parent 1260598e9e
commit 852882bae3
2 changed files with 37 additions and 45 deletions

View File

@@ -143,6 +143,7 @@ static uint32_t plane_get_properties(int drmfd, uint32_t plane_id, bool *is_curs
if(!props)
return false;
// TODO: Dont do this every frame
for(uint32_t i = 0; i < props->count_props; ++i) {
drmModePropertyPtr prop = drmModeGetProperty(drmfd, props->props[i]);
if(!prop)