VT: Change kStaticBuffer to 100ms except for ViLTE
[Problem] RTSP playback shows cracked & after images.
[Cause] By recent changes around this commit,
RTP receiver changed a policy of packet buffering.
The policy tends to decode packet instantly
than wait its neighbor packets.
It works as a disadvantage for RTSP streaming
which easy to show scrambled packet arrival.
[Solution] Current buffering time 50ms is too short.
The length of the time is focused on ViLTE RTP conn.
So give longer time for the other usage conn.
Bug: 192538925
Signed-off-by: Kim Sungyeon <sy85.kim@samsung.com>
Change-Id: I9086118bf788bcdb2d738d548b41099925c85fda
diff --git a/media/libstagefright/rtsp/ARTPConnection.cpp b/media/libstagefright/rtsp/ARTPConnection.cpp
index ed9091d..74acdda 100644
--- a/media/libstagefright/rtsp/ARTPConnection.cpp
+++ b/media/libstagefright/rtsp/ARTPConnection.cpp
@@ -1105,6 +1105,7 @@
srcId, info->mSessionDesc, info->mIndex, info->mNotifyMsg);
if (mFlags & kViLTEConnection) {
+ setStaticJitterTimeMs(50);
source->setPeriodicFIR(false);
}
diff --git a/media/libstagefright/rtsp/ARTPSource.h b/media/libstagefright/rtsp/ARTPSource.h
index c625204..4984e91 100644
--- a/media/libstagefright/rtsp/ARTPSource.h
+++ b/media/libstagefright/rtsp/ARTPSource.h
@@ -31,7 +31,7 @@
namespace android {
-const uint32_t kStaticJitterTimeMs = 50; // 50ms
+const uint32_t kStaticJitterTimeMs = 100; // 100ms
struct ABuffer;
struct AMessage;