mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
win-dshow: Do not update encoders if active
Do not update the avermedia encoders if they are already active, they weren't designed to be updated in real time, so it will cause encoding to break.
This commit is contained in:
parent
86d4ee68e6
commit
8e9924d6a1
@ -140,7 +140,12 @@ inline bool DShowEncoder::Update(obs_data_t *settings)
|
||||
|
||||
static bool UpdateDShowEncoder(void *data, obs_data_t *settings)
|
||||
{
|
||||
return reinterpret_cast<DShowEncoder*>(data)->Update(settings);
|
||||
DShowEncoder *encoder = reinterpret_cast<DShowEncoder*>(data);
|
||||
|
||||
if (!obs_encoder_active(encoder->context))
|
||||
return encoder->Update(settings);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline void *CreateDShowEncoder(obs_data_t *settings,
|
||||
|
Loading…
Reference in New Issue
Block a user