From: Sangchul Lee Date: Fri, 28 Apr 2017 08:57:52 +0000 (+0900) Subject: Fix to skip decreasing repeat count in case of inifinite play in mm_sound_plugin_code... X-Git-Tag: submit/tizen/20170502.041616^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bbca74788fac7ca08e6744e9c1d162a15e749c8b;p=platform%2Fcore%2Fmultimedia%2Flibmm-sound.git Fix to skip decreasing repeat count in case of inifinite play in mm_sound_plugin_codec_wave.c [Version] 0.10.111 [Profile] Common [Issue Type] Fix Bug Change-Id: If8ca4a90a0f4b22ed22edf41106c8e21cc1b7fe0 Signed-off-by: Sangchul Lee --- diff --git a/packaging/libmm-sound.spec b/packaging/libmm-sound.spec index b7bbe9a..2d0771a 100644 --- a/packaging/libmm-sound.spec +++ b/packaging/libmm-sound.spec @@ -1,6 +1,6 @@ Name: libmm-sound Summary: MMSound Package contains client lib and sound_server binary -Version: 0.10.110 +Version: 0.10.111 Release: 0 Group: System/Libraries License: Apache-2.0 diff --git a/server/plugin/wav/mm_sound_plugin_codec_wave.c b/server/plugin/wav/mm_sound_plugin_codec_wave.c index e4e17d8..1769252 100644 --- a/server/plugin/wav/mm_sound_plugin_codec_wave.c +++ b/server/plugin/wav/mm_sound_plugin_codec_wave.c @@ -228,7 +228,9 @@ static void _pa_stream_write_callback(pa_stream *s, size_t length, void *userdat /* Handle loop */ if (_sound_is_rewind_needed(h)) { debug_msg("repeat count = %d", h->repeat_count); - h->repeat_count--; + /* do not decrease it in case of -1 for infinite play */ + if (h->repeat_count != -1) + h->repeat_count--; if (_sound_rewind(h) == 0) return;