obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

Media Source set to 0x0 if transform is being modified when playback ends

Open Fenrirthviti opened this issue 5 years ago • 6 comments

Expected Behavior

Sources should not be set to 0x0

Current Behavior

When playing back a media source, if you are editing the size or scale of it when playback ends, the size of the source is set to 0x0, meaning that it is no longer visible in the preview.

Steps to Reproduce

  1. Add a media source
  2. While the source is playing, click and drag the bounding box and hold left mouse
  3. Wait for playback to end
  4. Bounding box will disappear, and source will be set to 0x0

Video: https://pub.rachni.com/vid/2020-01-10_14-47-43.webm

Additional information

Repro'd 100% of the time on Windows 10 x64, OBS v24.0.3. Oddly, appears that simply moving a source does not trigger this, but changing the size does. I have not tested other platforms.

Fenrirthviti avatar Jan 10 '20 20:01 Fenrirthviti

As a side note, confirmed that VLC source has the same issue.

Fenrirthviti avatar Jan 10 '20 20:01 Fenrirthviti

I could fix this by removing the async_active check in get_base_width and get_base_height (b30c1ed2ef11a968f01179ee8060311f71efec64) That check was added in 506e30da108e7255056b6eb9e91a0ff6297a7951. I don't see any strange behavior, but I'm not sure what this could break.

exeldro avatar Dec 02 '20 11:12 exeldro

@Fenrirthviti has this been fixed in the meantime? Because at least on macOS I cannot replicate the issue.

PatTheMav avatar Dec 31 '20 16:12 PatTheMav

This still reproduces on Windows 10 on 26.1

Fenrirthviti avatar Dec 31 '20 18:12 Fenrirthviti

Had this issue occur a couple days ago on the latest version, fresh install of OBS

I don't have any logs for you, as this happened to a friend of mine whilst he was sharing his screen with me

DocJade avatar Feb 28 '23 05:02 DocJade

Confirming this is still an issue as of 31.0 Beta1.

Fenrirthviti avatar Oct 14 '24 21:10 Fenrirthviti

@Warchamp7 I guess we'll only really be able to fix this until we make every source always have a bounding box by default, though I'm wary that the "magic" workarounds we still intend to provide in that case might get us right back to this issue again if we're not careful.

PatTheMav avatar Jul 17 '25 20:07 PatTheMav