[gst-devel] location of plugins on a windows system...

Ali Sabil ali.sabil at tandberg.com
Thu Sep 20 21:41:22 CEST 2007


Maybe you want to take a look at the GstRegistry documentation, you can
do a gst_registry_add_path() iirc, that is far cleaner in my opinion
than playing with env vars :)

--
Ali

On Thu, 2007-09-13 at 11:34 +0200, Sebastien Moutte wrote:
> 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.
> 
>  
> 
> From: Philip Pellouchoud [mailto:pellouch at yahoo.com] 
> Sent: mercredi 12 septembre 2007 19:37
> To: Sebastien Moutte; Philip Pellouchoud;
> gstreamer-devel at lists.sourceforge.net
> Subject: Re: [gst-devel] location of plugins on a windows system...
> 
> 
>  
> 
> Is there any way to set the plugin path programmatically (other than
> setting the environment variable programmatically :-).
> 
> -phil
> 
> ----- Original Message ----
> From: Sebastien Moutte <sebastien at moutte.net>
> To: Philip Pellouchoud <phil at san.rr.com>;
> gstreamer-devel at lists.sourceforge.net
> 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’s accessible from your app by getting
> it with getenv(“GST_PLUGIN_PATH”).
> 
> Regards,
> 
> Sebastien
> 
>  
> 
> From:gstreamer-devel-bounces at lists.sourceforge.net
> [mailto:gstreamer-devel-bounces at lists.sourceforge.net] On Behalf Of
> Philip Pellouchoud
> Sent: mercredi 12 septembre 2007 17:10
> To: gstreamer-devel at lists.sourceforge.net
> Subject: [gst-devel] location of plugins on a windows system...
> 
> 
>  
> 
> Hi all,
> 
> I am new to gstreamer and I am running into something simple that I
> can’t seem to fix.
> 
> I’ve 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 = g_main_loop_new(NULL, FALSE);
> 
>     GstElement* play = gst_element_factory_make("playbin", "play");
>     g_object_set (G_OBJECT (play), "uri", "C:\\test.mp3", NULL);
> 
>     ....
> 
>     return 0;
> }
> 
> play is NULL.
> 
> That’s because it can’t 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=file://C:\\test.mp3
> 
> This works great.  Plays the file and everything.  I think what’s
> happening is that within my app (which is in a totally different
> directory), it can’t find that DLL, and so it can’t create the
> “playbin” element.  I tried copying those DLLs into my
> application/debug directory but it didn’t help, that kept returning
> NULL.
> 
> Any help would be great, thanks!
> 
> -phil
> 
> 
>  
> 
>                                    
> ______________________________________________________________________
> Check out the hottest 2008 models today at Yahoo! Autos. 
> 
> 
>  
> 
>                                    
> ______________________________________________________________________
> Tonight's top picks. What will you watch tonight? Preview the hottest
> shows on Yahoo! TV. 
> 
> 
>  
> 
> 
>  
> 
>                                    
> ______________________________________________________________________
> Don't let your dream ride pass you by. Make it a reality with Yahoo!
> Autos. 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list