custom pipeline on android

Sebastian Dröge sebastian at
Mon Apr 18 07:15:52 UTC 2016

On Fr, 2016-04-15 at 11:35 +0200, Dani wrote:
> Hi everyone, 
> I am trying to play a custom pipeline able to play mp4 files on android. So my first step has been checking that this pipeline works correctly by using gst-launch-1.0 in the terminal (ubuntu14.04):
> gst-launch-1.0 souphttpsrc location= ! qtdemux name=demux demux. ! queue ! aacparse ! faad ! autoaudiosink demux. ! queue ! h264parse ! avdec_h264 ! autovideosink
> My next step has been using the tutorial5 example for android project. And the modifications that I have made are the ones I show here:
> [...]
> 04-15 11:30:24.987 21178-21230/ I/GLib+stdout:  In dynamic ADDING PAD video_0
> 04-15 11:30:24.987 21178-21230/ A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x1 in tid 21230 (src:src)

Run this in a native debugger (e.g. gdb) and see where exactly it
crashes and why.

Judging from your code, the problem could be here:
  g_signal_connect (data->demux, "pad-added", G_CALLBACK (dynamic_addpad), &data);

You pass a pointer to your data pointer in there, and then later use it
just like a normal pointer in the callback. That's not going to work
well, especially as &data is going to be an invalid reference on the
stack after the function where you connect the signal has returned.

Sebastian Dröge, Centricular Ltd ·

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the gstreamer-devel mailing list