Android: Cannot register existing type 'GstSoupHttpClientSink'
I have made some modifications to souphttpclientsink and would like to include them in my Android app. I've locally copied, modified and renamed souphttpclientsink.c/.h -> customsouphttpclientsink.c/.h, and gstsouputils.h into my Android project source folder. Initially I was unable to build the project because these files could not find <libsoup/soup.h>. I ended up having to include libsoup-2.4 in my Android.mk and then it built. However, when running my application I get the following error when trying to register my new plugin: "cannot register existing type 'GstSoupHttpClientSink'". I've looked all over and most forum posts say that it is because both GStreamer 1.0 and 0.10 are installed. That is not the case though, I have only ever had GStreamer 1.0 versions installed (currently using 1.8.0, but have 1.6.2, 1.8.2 and 1.10.2 on my computer). Does anyone know what could be causing me to run into this issue? For reference I am on macOS Sierra, 10.12.2 and am using ndk-r10e. My Android.mk is below:
Re: Android: Cannot register existing type 'GstSoupHttpClientSink'
This is because you're linking the souphttpsrc element twice in yoru
code. You need to rename your modified copy, for example, you can
search and replace GstSoup with MyGstSoup throughout those files and
that should fix this problem.
Be aware that if you distribute your application with modified versions
of code from GStreamer (or any other LGPL code), you need to publish
under the LGPL the full source code for all the files needed to rebuild
(and replace) this code in your application.
On Thu, 2017-02-09 at 11:25 -0800, wbonnefond wrote: