pa_threaded_mainloop_unlock(h->m);
}
-static int _pa_stream_stop_disconnect(wave_info_t *h)
+static void _pa_stream_stop_disconnect(wave_info_t *h)
{
assert(h);
assert(h->m);
pa_threaded_mainloop_free(h->m);
h->m = NULL;
-
- return 0;
}
static int* _mm_sound_plug_codec_wave_get_supported_types(void)
static int _mm_sound_plug_codec_wave_stop(MMHandleType handle)
{
- int ret = 0;
wave_info_t *p = (wave_info_t*) handle;
if (!p) {
debug_msg("Handle %p stop requested", p);
- ret = _pa_stream_stop_disconnect(p);
+ _pa_stream_stop_disconnect(p);
if (p->stop_cb)
p->stop_cb(p->cb_param);
- return (ret == 0) ? MM_ERROR_NONE : MM_ERROR_SOUND_INTERNAL;
+ return MM_ERROR_NONE;
}
static int _mm_sound_plug_codec_wave_destroy(MMHandleType handle)