After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 393461 - [Real] Location of .so varies on each distribution
[Real] Location of .so varies on each distribution
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 0.10.6
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-06 11:03 UTC by Edward Hervey
Modified: 2007-07-24 14:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
PATCH: add a plugin search path to the real decoders (24.87 KB, patch)
2007-06-30 18:34 UTC, Hans de Goede
committed Details | Review

Description Edward Hervey 2007-01-06 11:03:02 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.
Comment 1 Edward Hervey 2007-01-06 14:14:42 UTC
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 !!
Comment 2 Hans de Goede 2007-06-30 18:34:47 UTC
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.
Comment 3 Edward Hervey 2007-07-24 14:37:31 UTC
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