From: Michal Sojka Date: Sat, 22 May 2010 00:14:48 +0000 (+0200) Subject: recorder: Renegotiate also WiFi contract X-Git-Tag: jsa-paper-casestudy-v2~7 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/demo.git/commitdiff_plain/26b938226cba7a952cd79ff33e3b603bb14739f9 recorder: Renegotiate also WiFi contract --- diff --git a/src/recorder/ffmpeg.c b/src/recorder/ffmpeg.c index 469fd94..bb9a295 100644 --- a/src/recorder/ffmpeg.c +++ b/src/recorder/ffmpeg.c @@ -74,6 +74,10 @@ #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: