Skip to content

Commit

Permalink
ignore bitrate limit
Browse files Browse the repository at this point in the history
mariotaku committed Jul 15, 2024
1 parent 96aa57c commit 29cff0b
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/stream/session.c
Original file line number Diff line number Diff line change
@@ -272,7 +272,7 @@ void session_config_init(app_t *app, session_config_t *config, const SERVER_DATA
}
// Cap framerate to platform request
if (video_cap.maxBitrate && config->stream.bitrate > video_cap.maxBitrate) {
config->stream.bitrate = (int) video_cap.maxBitrate;
// config->stream.bitrate = (int) video_cap.maxBitrate;
}
config->sops &= streaming_sops_supported(server->modes, config->stream.width, config->stream.height,
config->stream.fps);
2 changes: 1 addition & 1 deletion src/app/ui/settings/panes/basic.pane.c
Original file line number Diff line number Diff line change
@@ -138,7 +138,7 @@ static lv_obj_t *create_obj(lv_fragment_t *self, lv_obj_t *container) {

pane->bitrate_label = pref_title_label(view, locstr("Video bitrate"));

unsigned int max = app->ss4s.video_cap.maxBitrate ? app->ss4s.video_cap.maxBitrate : 100000;
unsigned int max = 150000;
lv_obj_t *bitrate_slider = pref_slider(view, &app_configuration->stream.bitrate, 5000, (int) max, BITRATE_STEP);
lv_obj_set_width(bitrate_slider, LV_PCT(100));
lv_obj_add_event_cb(bitrate_slider, on_bitrate_changed, LV_EVENT_VALUE_CHANGED, self);

0 comments on commit 29cff0b

Please sign in to comment.