Skip to content

Commit

Permalink
- Update README
Browse files Browse the repository at this point in the history
- Change so that the “Receiving” filler is not displayed when the clear_on_media_end option is ON.
  • Loading branch information
hanatyan128 committed Nov 21, 2024
1 parent 3e6b8f6 commit 681134b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ SRC-Link はウェブサービスの [SRC-Link Control Panel](https://src-link.l

## Requirements

[OBS Studio](https://obsproject.com/) >= 30.1.0 (Qt6, x64/ARM64/AppleSilicon)
[OBS Studio](https://obsproject.com/) >= 30.1.0 (Qt6, Windows x64)

> Mac OS, Linux isn't tested yet.
**[EN]**

Expand Down
8 changes: 4 additions & 4 deletions src/sources/ingress-link-source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,9 @@ void IngressLinkSource::getDefaults(obs_data_t *settings, SRCLinkApiClient *apiC
obs_log(LOG_DEBUG, "Default settings applying.");

obs_data_set_default_bool(settings, "hw_decode", false);
obs_data_set_default_bool(settings, "clear_on_media_end", true);
obs_data_set_default_int(settings, "max_bitrate", 8000);
obs_data_set_default_int(settings, "min_bitrate", 4000);
obs_data_set_default_bool(settings, "clear_on_media_end", false);
obs_data_set_default_int(settings, "max_bitrate", 10000);
obs_data_set_default_int(settings, "min_bitrate", 5000);
obs_data_set_default_bool(settings, "advanced_settings", false);
obs_data_set_default_int(settings, "srt_latency", apiClient->getSettings()->getIngressSrtLatency());
obs_data_set_default_int(settings, "reconnect_delay_sec", apiClient->getSettings()->getIngressReconnectDelayTime());
Expand All @@ -499,7 +499,7 @@ void IngressLinkSource::videoRenderCallback(gs_effect_t *effect)
{
// Just pass through the video
if (!connection.isEmpty()) {
if (!obs_source_get_width(decoderSource) || !obs_source_get_height(decoderSource)) {
if (!clearOnMediaEnd && (!obs_source_get_width(decoderSource) || !obs_source_get_height(decoderSource))) {
// Display connecting image
connectingRenderer->render(effect, getWidth(), getHeight());
} else {
Expand Down

0 comments on commit 681134b

Please sign in to comment.