diff options
author | Jacek Antonelli | 2009-03-26 02:05:38 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-03-26 02:09:38 -0500 |
commit | b52580d0858e5a97b03c4c4f2a64f6049d2a7966 (patch) | |
tree | 444a86a70da6648b73247860af09ee057d88c324 /linden | |
parent | Removed obsolete gstreamer_syms files. (diff) | |
download | meta-impy-b52580d0858e5a97b03c4c4f2a64f6049d2a7966.zip meta-impy-b52580d0858e5a97b03c4c4f2a64f6049d2a7966.tar.gz meta-impy-b52580d0858e5a97b03c4c4f2a64f6049d2a7966.tar.bz2 meta-impy-b52580d0858e5a97b03c4c4f2a64f6049d2a7966.tar.xz |
Fixed/improved how slvideo gst plugin is registered.
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/llmedia/llmediaimplgstreamervidplug.cpp | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp b/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp index 651b1b3..eaf2c84 100644 --- a/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp +++ b/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp | |||
@@ -435,25 +435,19 @@ plugin_init (GstPlugin * plugin) | |||
435 | GST_RANK_NONE, GST_TYPE_SLVIDEO); | 435 | GST_RANK_NONE, GST_TYPE_SLVIDEO); |
436 | } | 436 | } |
437 | 437 | ||
438 | /* this is the structure that gstreamer looks for to register plugins | ||
439 | */ | ||
440 | /* NOTE: Can't rely upon GST_PLUGIN_DEFINE_STATIC to self-register, since | ||
441 | some g++ versions buggily avoid __attribute__((constructor)) functions - | ||
442 | so we provide an explicit plugin init function. | ||
443 | */ | ||
444 | #define PACKAGE "packagehack" | ||
445 | GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, | ||
446 | GST_VERSION_MINOR, | ||
447 | "private-slvideoplugin", | ||
448 | "SL Video sink plugin", | ||
449 | plugin_init, "0.1", GST_LICENSE_UNKNOWN, | ||
450 | "Second Life", | ||
451 | "http://www.secondlife.com/"); | ||
452 | #undef PACKAGE | ||
453 | 438 | ||
454 | void gst_slvideo_init_class (void) | 439 | void gst_slvideo_init_class (void) |
455 | { | 440 | { |
456 | //fprintf(stderr, "\n\n\nCLASS INIT\n\n\n"); | 441 | gst_plugin_register_static( GST_VERSION_MAJOR, |
442 | GST_VERSION_MINOR, | ||
443 | "private-slvideoplugin", | ||
444 | "SL Video sink plugin", | ||
445 | plugin_init, | ||
446 | "0.1", | ||
447 | GST_LICENSE_UNKNOWN, | ||
448 | "Second Life", | ||
449 | "Second Life", | ||
450 | "http://www.secondlife.com/" ); | ||
457 | } | 451 | } |
458 | 452 | ||
459 | ///#endif // LL_GSTREAMER_ENABLED | 453 | ///#endif // LL_GSTREAMER_ENABLED |