Forráskód Böngészése

libobs: Remove broken rescale modification logic

This logic would previously have written any changed scale resolution
set by the encoder in the `.get_video_info` callback back to the
encoder, however this functionality was "broken" by
20d8779d30fd5cfd7f2ebd6b3eb7777c3b99b19f. In reality, this would have
never worked with texture encoders or with GPU rescaling enabled, and
probably would have had odd side effects for CPU rescaling, too. It's
best just to remove this functionality.
tt2468 1 éve
szülő
commit
92b5643081
1 módosított fájl, 0 hozzáadás és 3 törlés
  1. 0 3
      libobs/obs-encoder.c

+ 0 - 3
libobs/obs-encoder.c

@@ -186,9 +186,6 @@ static inline void get_video_info(struct obs_encoder *encoder,
 
 	if (encoder->info.get_video_info)
 		encoder->info.get_video_info(encoder->context.data, info);
-
-	if (info->width != voi->width || info->height != voi->height)
-		obs_encoder_set_scaled_size(encoder, info->width, info->height);
 }
 
 static inline bool gpu_encode_available(const struct obs_encoder *encoder)