summaryrefslogtreecommitdiff
path: root/src/lib/ecore_audio/ecore_audio_obj_out_pulse.c
diff options
context:
space:
mode:
authorDaniel Willmann <d.willmann@samsung.com>2013-04-17 20:35:10 +0100
committerDaniel Willmann <d.willmann@samsung.com>2013-04-18 19:16:40 +0100
commite93ddc9bb3012667de680a2c706ee138c5e933e8 (patch)
tree29102f71ac77ac4bae7652c35f8d36dd3e705a23 /src/lib/ecore_audio/ecore_audio_obj_out_pulse.c
parentd2326d229e163821b97669145a5dd2741d264bfe (diff)
ecore_audio_pulse: Fix small bug that would delay PA stream deletion
In case of short reads just make sure that playback is started immediately. No need to drain just yet as that just causes issues with delayed removals of streams. Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_audio/ecore_audio_obj_out_pulse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_audio/ecore_audio_obj_out_pulse.c b/src/lib/ecore_audio/ecore_audio_obj_out_pulse.c
index 4a3f9f86b5..c103b738cd 100644
--- a/src/lib/ecore_audio/ecore_audio_obj_out_pulse.c
+++ b/src/lib/ecore_audio/ecore_audio_obj_out_pulse.c
@@ -85,8 +85,9 @@ static void _write_cb(pa_stream *stream, size_t len, void *data)
85 pa_stream_write(stream, buf, bread, free, 0, PA_SEEK_RELATIVE); 85 pa_stream_write(stream, buf, bread, free, 0, PA_SEEK_RELATIVE);
86 if (bread < len) 86 if (bread < len)
87 { 87 {
88 pa_operation_unref(pa_stream_trigger(stream, NULL, NULL));
88 //in->ended = EINA_TRUE; 89 //in->ended = EINA_TRUE;
89 pa_operation_unref(pa_stream_drain(stream, NULL, NULL)); 90 //pa_operation_unref(pa_stream_drain(stream, NULL, NULL));
90 } 91 }
91} 92}
92 93