GNOME Bugzilla – Bug 393461
[Real] Location of .so varies on each distribution
Last modified: 2007-07-24 14:37:31 UTC
Currently the Real plugin has hardcoded values for the location of the wrapped .so . The problem is those path vary from distribution to distribution. We need to find a better way to set the default paths at compile time so packagers can properly set those.
Not only the path can be different, but the extension can be different too. For example, for x86_64 the cook .so is cook.so and not cook.so.6.0 !!
Created attachment 90941 [details] [review] PATCH: add a plugin search path to the real decoders Hi all, Short intro (again) I'm the livna gstreamer plugins maintainer. I've solved the issue of where to find the .so files, and under what name, by adding 2 different properties which are used to find 1 .so 1 global (as in shared by all .so's to search) directory search path, ':' seperated and 1 per .so (for example cook) names search path, for cook this is for example by default: "cook.so:cook.so.6.0" This 2 dimensional approach makes it easy to make the plugin look in various places and find the needed files under various names. I've tried to put sane defaults in this patch, but there might be names / paths missing. This way it will work on any distro, and even better it will work independend of how the users got the .so files. For example with this patch the plugin will also search under the default RealPlayer install location, thus if a user has downloaded and installed the realplayer rpm from real, the .so's will be found too.
2007-07-24 Hans de Goede <j.w.r.degoede@hhs.nl> reviewed by: Edward Hervey <bilboed@bilboed.com> * gst/real/gstreal.c: (plugin_init): * gst/real/gstrealaudiodec.c: (gst_real_audio_dec_setcaps), (gst_real_audio_dec_finalize), (gst_real_audio_dec_set_property), (gst_real_audio_dec_get_property), (gst_real_audio_dec_class_init): * gst/real/gstrealvideodec.c: (open_library), (gst_real_video_dec_finalize), (gst_real_video_dec_set_property), (gst_real_video_dec_get_property), (gst_real_video_dec_class_init): * gst/real/gstrealvideodec.h: Improved search algorithm for location of real .so files. Fixes #393461