From c5d7fafdffc182b36404a404af17f30500ad3b4a Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Wed, 9 Dec 2009 14:43:11 +0100 Subject: [PATCH] Fixed streamer CPU reservation --- streamer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/streamer.c b/streamer.c index a91ee24..06da889 100644 --- a/streamer.c +++ b/streamer.c @@ -270,15 +270,15 @@ int main(int argc, char *argv[]) dump_format(os, 0, os->filename, 1); sdp_print(os, sdp_file); -#if CONFIG_STREAMER_WITH_FRSH && CONFIG_AQUOSA +#if CONFIG_FFMPEG_WITH_FRSH && CONFIG_AQUOSA frsh_thread_attr_t frsh_attr; frsh_thread_id_t thread; frsh_vres_id_t cpu_vres; frsh_contract_t cpu_contract; frsh_rel_time_t cpu_budget, cpu_period; - cpu_budget = fosa_msec_to_rel_time(50); - cpu_period = fosa_msec_to_rel_time(100); + cpu_budget = fosa_msec_to_rel_time(10); + cpu_period = fosa_msec_to_rel_time(1000/fps); /* Contract negotiation for CPU */ ret = frsh_contract_init(&cpu_contract); if (ret) PERROR_AND_EXIT(ret, "CPU:frsh_contract_init"); -- 2.39.2