<div dir="ltr">The cache dir is in fact is ~/.cache/gstreamer-1.0/<br><br>Once removed, you may run the pipeline with GST_DEBUG=4 and then you will see at the beginning what libraries are getting loaded for instance:<br><br>0:00:00.002036000 71423 0x600003dfc660 INFO GST_PLUGIN_LOADING gstplugin.c:987:_priv_gst_plugin_load_file_for_registry: plugin "/opt/homebrew/Cellar/gstreamer/1.22.9_1/lib/gstreamer-1.0/libgstdebug.dylib" loaded<br>0:00:00.002977000 71423 0x600003dfc660 INFO GST_PLUGIN_LOADING gstplugin.c:987:_priv_gst_plugin_load_file_for_registry: plugin "/opt/homebrew/Cellar/gstreamer/1.22.9_1/lib/gstreamer-1.0/libgstwebp.dylib" loaded<br>0:00:00.003554000 71423 0x600003dfc660 INFO GST_PLUGIN_LOADING gstplugin.c:987:_priv_gst_plugin_load_file_for_registry: plugin "/opt/homebrew/Cellar/gstreamer/1.22.9_1/lib/gstreamer-1.0/libgstipcpipeline.dylib" loaded<br>0:00:00.004612000 71423 0x600003dfc660 INFO GST_PLUGIN_LOADING gstplugin.c:987:_priv_gst_plugin_load_file_for_registry: plugin "/opt/homebrew/Cellar/gstreamer/1.22.9_1/lib/gstreamer-1.0/libgstinterleave.dylib" loaded<br><div><br></div><div>In my case `gst-inspect-1.0 filesrc` says that filesrc is located in /opt/homebrew/Cellar/gstreamer/1.22.9_1/lib/gstreamer-1.0/libgstcoreelements.dylib.</div><div><br></div><div>This way you may ensure that the correct libs get loaded. If not then you may try with setting <span style="color:rgb(77,81,86);font-family:arial,sans-serif;font-size:14px">GST_PLUGIN_PATH env variable (I would remove the cache first).</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 13, 2024 at 10:06 AM Ramil Galin <<a href="mailto:leftbyheaven@gmail.com">leftbyheaven@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Tomasz,</div><div><br></div><div>Thank you for the quick response!</div><div><br></div><div>I've tried removing the cache, unfortunately it doesn't help.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 13 февр. 2024 г. в 09:47, Tomasz Mikolajczyk <<a href="mailto:tmmikolajczyk@gmail.com" target="_blank">tmmikolajczyk@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Have you tried to remove the cache directory? Usually ~/.cache/gstreamer (at least on Linux).</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 13 Feb 2024 at 09:01, Ramil Galin via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello!</div><div><br></div><div>I am developing an app for Android using JNI. I use CMake to build my jni lib and follow <a href="https://github.com/henkeldi/gstreamer-android/blob/master/app/src/main/cpp/CMakeLists.txt" target="_blank">this</a> example to configure the CMakeLists.txt and gstreamer_android.cpp. I declare and register plugins according to the example either.<br></div><div><br></div><div>The problem is that when I try to create some element of pipeline (e.g. "filesrc", "videotestsrc" etc.) using <b>gst_element_factory_make, </b>it returns nullptr. I posted the questions on <a href="https://stackoverflow.com/questions/77961381/andoird-jni-gst-element-factory-make-returns-nullptr-when-i-try-create-element" target="_blank">stackoverflow</a> and <a href="https://discourse.gstreamer.org/t/android-jni-gst-element-factory-make-returns-nullptr/959/3" target="_blank">gstreamer</a> forum but still got no answers. <br></div><div><br></div><div>I would appreciate if you could help me with this problem.</div><div><br></div><div>Looking forward to hearing from you.</div><div><br></div><div>Best regards,</div><div>Ramil Galin<br></div><div><br></div><div><br></div></div>
</blockquote></div></div>
</blockquote></div>
</blockquote></div>