From: Sebastien M. <seb...@mo...> - 2007-09-13 09:34:27
|
Sure, just use putenv or g_setenv to set this environment variable programmatically only for your application. By this way, you can install a private copy of gstreamer only with the libraries and plugins you need. =20 From: Philip Pellouchoud [mailto:pel...@ya...]=20 Sent: mercredi 12 septembre 2007 19:37 To: Sebastien Moutte; Philip Pellouchoud; gst...@li... Subject: Re: [gst-devel] location of plugins on a windows system... =20 Is there any way to set the plugin path programmatically (other than = setting the environment variable programmatically :-). -phil ----- Original Message ---- From: Sebastien Moutte <seb...@mo...> To: Philip Pellouchoud <ph...@sa...>; gst...@li... Sent: Wednesday, September 12, 2007 9:14:10 AM Subject: Re: [gst-devel] location of plugins on a windows system... You should check that GST_PLUGIN_PATH is well defined in your = environment variables. If yes, you should check that it=92s accessible from your app by getting = it with getenv(=93GST_PLUGIN_PATH=94). Regards, Sebastien =20 From: gst...@li... [mailto:gst...@li...] On Behalf Of = Philip Pellouchoud Sent: mercredi 12 septembre 2007 17:10 To: gst...@li... Subject: [gst-devel] location of plugins on a windows system... =20 Hi all, I am new to gstreamer and I am running into something simple that I = can=92t seem to fix. I=92ve got a very tiny app: int main(int argc, char* argv[]) { gst_init(NULL, NULL); guint nMajor(0), nMinor(0), nMicro(0), nNano(0); gst_version(&nMajor, &nMinor, &nMicro, &nNano); GMainLoop* loop(NULL); loop =3D g_main_loop_new(NULL, FALSE); GstElement* play =3D gst_element_factory_make("playbin", "play"); g_object_set (G_OBJECT (play), "uri", "C:\\test.mp3", NULL); .... return 0; } play is NULL. That=92s because it can=92t find the libgstplaybin.dll in C:\Program Files\Common Files\GStreamer\0.10\lib\gstreamer-0.10. If I CD to C:\Program Files\Common Files\GStreamer\0.10\bin and run gst-launch-0.10.exe playbin uri=3Dfile://C:\\test.mp3 This works great. Plays the file and everything. I think what=92s = happening is that within my app (which is in a totally different directory), it = can=92t find that DLL, and so it can=92t create the =93playbin=94 element. I = tried copying those DLLs into my application/debug directory but it didn=92t = help, that kept returning NULL. Any help would be great, thanks! -phil =20 _____ =20 Check out <http://us.rd.yahoo.com/evt=3D51201/*http:/autos.yahoo.com/new_cars.html;= _ylc=3D X3oDMTE5NWVzZGVyBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDYXV0b3MtbmV3Y2Fy>= the hottest 2008 models today at Yahoo! Autos.=20 =20 _____ =20 Tonight's top picks. What will you watch tonight? Preview the hottest = shows <http://us.rd.yahoo.com/tv/mail/tagline/tonightspicks/evt=3D48220/*http:/= tv.ya hoo.com/%20%0a> on Yahoo! TV.=20 =20 =20 _____ =20 Don't let your dream ride pass you by. Make <http://us.rd.yahoo.com/evt=3D51200/*http:/autos.yahoo.com/index.html;_yl= c=3DX3o DMTFibjNlcHF0BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDYXV0b3MtZHJlYW1jYXI-= > it a reality with Yahoo! Autos.=20 |