Fix to skip decreasing repeat count in case of inifinite play in mm_sound_plugin_code... 87/127687/1 accepted/tizen/unified/20170502.165405 submit/tizen/20170502.041616
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 28 Apr 2017 08:57:52 +0000 (17:57 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 28 Apr 2017 09:03:06 +0000 (18:03 +0900)
[Version] 0.10.111
[Profile] Common
[Issue Type] Fix Bug

Change-Id: If8ca4a90a0f4b22ed22edf41106c8e21cc1b7fe0
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/libmm-sound.spec
server/plugin/wav/mm_sound_plugin_codec_wave.c

index b7bbe9a..2d0771a 100644 (file)
@@ -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
index e4e17d8..1769252 100644 (file)
@@ -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;