author | Xiaoliang Wang <xiaoliang.wang@amlogic.com> | 2015-09-02 03:26:35 (GMT) |
---|---|---|
committer | Xiaoliang Wang <xiaoliang.wang@amlogic.com> | 2015-09-06 02:17:24 (GMT) |
commit | d0c1927d112692ae1145867f21d5a4ab66226305 (patch) | |
tree | b82b2cb233c0e428fa5ade9f27100d2da1c8e1f2 | |
parent | 6d59541545ea31cda5bc3b12bb1b8d9abca33ef6 (diff) | |
download | SubTitle-d0c1927d112692ae1145867f21d5a4ab66226305.zip SubTitle-d0c1927d112692ae1145867f21d5a4ab66226305.tar.gz SubTitle-d0c1927d112692ae1145867f21d5a4ab66226305.tar.bz2 |
change for reading total and type once
Change-Id: Ib7d375dadab99a4f385c849aec865e494cb435b8
-rw-r--r-- | jni/subtitle/sub_jni.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jni/subtitle/sub_jni.c b/jni/subtitle/sub_jni.c index 2f5e38b..a6cdf24 100644 --- a/jni/subtitle/sub_jni.c +++ b/jni/subtitle/sub_jni.c @@ -556,14 +556,16 @@ void inter_subtitle_parser() #else void *inter_subtitle_parser() { + int inner_sub_total = get_subtitle_num(); + int inner_sub_type = get_subtitle_subtype(); //sub_thread = 1; while (sub_thread) { //LOGI("[inter_subtitle_parser]get_subtitle_num():%d\n", get_subtitle_num()); - if (get_subtitle_num()) + if (inner_sub_total > 0) get_inter_spu(); subThreadSleeping = 1; - if (get_subtitle_subtype() == 1) // For pgs sub, speed up decode freq + if (inner_sub_type == 1) // For pgs sub, speed up decode freq usleep(300000); else usleep(500000); |