Android Internal data flow error + logcat debug

Sebastian Dröge sebastian at centricular.com
Fri May 16 11:00:38 PDT 2014


On Fr, 2014-05-16 at 16:15 +0200, Lee Matthews wrote:
> Hi
> 
> I'm trying to read an audio stream from an android phone using gstreamer. My application is based on the gstreamer android tutorials.
> 
> My audio pipeline on the phone is 
> 
> tcpclientsrc ! opusdec ! audioconvert ! openslessink
> 
> In logcat I get the following error message.
> 
> D/AUDIO-SINK(31971): gstreamer : Element audio-stream : stream-start message
> W/GStreamer+basesrc(31971): 0:00:16.055237494 0x75962ac0 gstbasesrc.c:2865:gst_base_src_loop:<source> error: Internal data flow error.
> W/GStreamer+basesrc(31971): 0:00:16.056187963 0x75962ac0 gstbasesrc.c:2865:gst_base_src_loop:<source> error: streaming task paused, reason error (-5)
> I/GLib+stdout(31971): network : 
> 
> Does anyone know what is reason error -5 ?
> 
> Does anyone know how I can increase the verbosity of the debug information in logcat ? I have tried setting gst_debug_set_default_threshold (GST_LEVEL_DEBUG) just after gst_init but this does not seem to do anything.

Is your code based on the gstreamer_android.c that is generated by the
ndk-build magic included in the GStreamer Android binaries? Please check
if after the gst_init() call there's no other call to
gst_debug_set_default_threshold() than your own.

Also try if calling
  gst_debug_set_threshold_for_name("basesrc", GST_LEVEL_DEBUG);
makes any difference. If it does, then some code elsewhere is overriding
the default threshold you set again afterwards.

Hope this helps... apart from that your pipeline should work in theory
and we can only know why not from the debug logs.

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140516/697eba14/attachment.sig>


More information about the gstreamer-devel mailing list