Skip to content

Commit

Permalink
Fix internal frames OBS 30.2
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Aug 3, 2024
1 parent 520c52c commit 51e5a51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion replay-filter-async.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,11 @@ replay_filter_video(void *data, struct obs_source_frame *frame)
if (obs_get_version() <
MAKE_SEMANTIC_VERSION(30, 0, 0)) {
filter->target_offset = 2000;
} else {
} else if (obs_get_version() <
MAKE_SEMANTIC_VERSION(30, 2, 0)) {
filter->target_offset = 2008;
} else {
filter->target_offset = 2000;
}
}
struct darray *async_cache =
Expand Down
3 changes: 1 addition & 2 deletions replay-source.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <media-io/video-frame.h>
#include <media-io/video-scaler.h>
#include <obs-frontend-api.h>
#include <obs-scene.h>
#include "replay.h"
#include <inttypes.h>
#include <string.h>
Expand Down Expand Up @@ -292,7 +291,7 @@ static bool EnumSceneItem(obs_scene_t *scene, obs_sceneitem_t *item, void *data)
{
UNUSED_PARAMETER(scene);
struct siu *siu = data;
if (item->source == siu->source) {
if (obs_sceneitem_get_source(item) == siu->source) {
struct obs_sceneitem_crop crop;
obs_sceneitem_get_crop(item, &crop);
crop.left = 0;
Expand Down

0 comments on commit 51e5a51

Please sign in to comment.