Browse code

b/f:core: when resuming RTP stream, also clear rtp events queue

Stefan Sayer authored on 06/11/2014 15:24:31
Showing 1 changed files
... ...
@@ -788,6 +788,8 @@ void AmRtpStream::resume()
788 788
   receive_mut.lock();
789 789
   mem.clear();
790 790
   receive_buf.clear();
791
+  while (!rtp_ev_qu.empty())
792
+    rtp_ev_qu.pop();
791 793
   receive_mut.unlock();
792 794
   receiving = true;
793 795