]> rtime.felk.cvut.cz Git - frescor/demo.git/commitdiff
recorder: Increase wifi budget on renegotiation
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 22 May 2010 00:28:53 +0000 (02:28 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 22 May 2010 00:28:53 +0000 (02:28 +0200)
src/ffmpeg
src/recorder/ffmpeg.c

index b239fc6108c44012c40c4116db4865211ee41a80..e8f986c9d49bd268b086dc71302084587bee5bf4 160000 (submodule)
@@ -1 +1 @@
-Subproject commit b239fc6108c44012c40c4116db4865211ee41a80
+Subproject commit e8f986c9d49bd268b086dc71302084587bee5bf4
index bb9a295c6404422841e1558311e7fde019272364..5e3a594554a21266c6d77869b65cf8f2e7e42a19 100644 (file)
@@ -1623,8 +1623,21 @@ print_timing(void)
 #ifdef CONFIG_FFMPEG_WITH_FRSH
        if (renegotiate == f) {
                frsh_contract_renegotiate_sync(&cpu_contract, cpu_vres);
-               if (last_rtp_contract && last_rtp_vres)
+               if (last_rtp_contract && last_rtp_vres) {
+                       frsh_rel_time_t budget;
+                       frsh_rel_time_t period;
+                       frsh_workload_t workload;
+                       frsh_contract_type_t contract_type;
+                       size_t bytes;
+                       frsh_contract_get_basic_params(&last_rtp_contract,
+                                                      &budget, &period, &workload, &contract_type);
+                       frsh_network_budget_to_bytes(FRSH_NETPF_FWP, &budget, &bytes);
+                       frsh_network_bytes_to_budget(FRSH_NETPF_FWP, 10*bytes, &budget);
+                                       
+                       frsh_contract_set_basic_params(&last_rtp_contract,
+                                                      &budget, &period, workload, contract_type);
                        frsh_contract_renegotiate_sync(&last_rtp_contract, last_rtp_vres);
+               }
        }
 #endif
 out: