0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +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:
jp9000 2015-02-14 15:02:49 -08:00
parent 86d4ee68e6
commit 8e9924d6a1

View File

@ -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,