asdfuser pushed a commit to branch master.

commit e93ddc9bb3012667de680a2c706ee138c5e933e8
Author: Daniel Willmann <[email protected]>
Date:   Wed Apr 17 20:35:10 2013 +0100

    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 <[email protected]>
---
 src/lib/ecore_audio/ecore_audio_obj_out_pulse.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 4a3f9f8..c103b73 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)
   pa_stream_write(stream, buf, bread, free, 0, PA_SEEK_RELATIVE);
   if (bread < len)
     {
+      pa_operation_unref(pa_stream_trigger(stream, NULL, NULL));
       //in->ended = EINA_TRUE;
-      pa_operation_unref(pa_stream_drain(stream, NULL, NULL));
+      //pa_operation_unref(pa_stream_drain(stream, NULL, NULL));
     }
 }
 

-- 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Reply via email to