From: Anthony Minessale Date: Wed, 9 Sep 2015 18:04:52 +0000 (-0500) Subject: FS-8126 #resolve [Pruning of a media bug may cause all media bugs on a session to... X-Git-Tag: v1.6.2~1^2~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe0908d6e1978723e7329c48fae231c9f5419c6c;p=thirdparty%2Ffreeswitch.git FS-8126 #resolve [Pruning of a media bug may cause all media bugs on a session to be pruned] --- diff --git a/src/switch_core_media.c b/src/switch_core_media.c index c35ffafa14..713733c0fc 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -10585,12 +10585,13 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_video_frame(switch_cor if (session->bugs) { switch_media_bug_t *bp; - switch_bool_t ok = SWITCH_TRUE; int prune = 0; int patched = 0; switch_thread_rwlock_rdlock(session->bug_rwlock); for (bp = session->bugs; bp; bp = bp->next) { + switch_bool_t ok = SWITCH_TRUE; + if (switch_channel_test_flag(session->channel, CF_PAUSE_BUGS) && !switch_core_media_bug_test_flag(bp, SMBF_NO_PAUSE)) { continue; } @@ -10820,12 +10821,13 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_video_frame(switch_core if (session->bugs) { switch_media_bug_t *bp; - switch_bool_t ok = SWITCH_TRUE; int prune = 0; int patched = 0; switch_thread_rwlock_rdlock(session->bug_rwlock); for (bp = session->bugs; bp; bp = bp->next) { + switch_bool_t ok = SWITCH_TRUE; + if (switch_channel_test_flag(session->channel, CF_PAUSE_BUGS) && !switch_core_media_bug_test_flag(bp, SMBF_NO_PAUSE)) { continue; }