<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Thanks for your suggestions, I have just used gdb for debugging and
I am quite confident it is related to dynamically linking pads.<br>
This is the log and the info I am getting through gdb (+attached
screenshot):<br>
<blockquote><small>DEVICE SHELL COMMAND: cat
/data/local/tmp/start_lldb_server.sh | run-as com.sample.app sh
-c 'cat >
/data/data/com.sample.app/lldb/bin/start_lldb_server.sh; chmod
700 /data/data/com.sample.app/lldb/bin/start_lldb_server.sh'</small><br>
<small>Starting LLDB server: run-as com.sample.app
/data/data/com.sample.app/lldb/bin/start_lldb_server.sh
/data/data/com.sample.app/lldb
/data/data/com.sample.app/lldb/tmp/platform-1460975640887.sock
"lldb process:gdb-remote packets"</small><br>
<small>Now Launching Native Debug Session</small><br>
<small>Debugger attached to process 27496</small><br>
<small>Signal: SIGSEGV (signal SIGSEGV: invalid address (fault
address: 0x37ea6cf7))</small><br>
</blockquote>
<br>
<br>
<img alt="" src="cid:part1.04080504.06070509@gmail.com" height="467"
width="1017"><br>
<br>
In the logcat I am still having the same messages as in the first
post. Is there any other possible way to pass the pointer without
this reference problem? <br>
<br>
Thanks in advance<br>
<br>
Dani<br>
<br>
<div class="moz-cite-prefix">El 18/04/16 a las 09:15, Sebastian
Dröge escribió:<br>
</div>
<blockquote cite="mid:1460963752.21892.14.camel@centricular.com"
type="cite">
<pre wrap="">On Fr, 2016-04-15 at 11:35 +0200, Dani wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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=<a class="moz-txt-link-freetext" href="http://192.168.0.10/videos/test.mp4">http://192.168.0.10/videos/test.mp4</a> ! 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/com.sample.app I/GLib+stdout: In dynamic ADDING PAD video_0
04-15 11:30:24.987 21178-21230/com.sample.app A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x1 in tid 21230 (src:src)
</pre>
</blockquote>
<pre wrap="">
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.
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>