]> rtime.felk.cvut.cz Git - frescor/demo.git/commitdiff
recorder: Renegotiate also WiFi contract
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 22 May 2010 00:14:48 +0000 (02:14 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 22 May 2010 00:14:48 +0000 (02:14 +0200)
src/recorder/ffmpeg.c

index 469fd94b4ac88720af6fcf2236411ec0b833efdd..bb9a295c6404422841e1558311e7fde019272364 100644 (file)
 
 #undef exit
 
+extern frsh_vres_id_t last_rtp_vres;
+extern frsh_contract_t last_rtp_contract;
+
+
 const char program_name[] = "FFmpeg";
 const int program_birth_year = 2000;
 
@@ -1619,7 +1623,8 @@ print_timing(void)
 #ifdef CONFIG_FFMPEG_WITH_FRSH
        if (renegotiate == f) {
                frsh_contract_renegotiate_sync(&cpu_contract, cpu_vres);
-               frsh_contract_renegotiate_sync(&disk_contract, disk_vres);
+               if (last_rtp_contract && last_rtp_vres)
+                       frsh_contract_renegotiate_sync(&last_rtp_contract, last_rtp_vres);
        }
 #endif
 out: