<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Is there any way to set the plugin path programmatically (other than setting the environment variable programmatically :-).<br><br>-phil<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Sebastien Moutte <sebastien@moutte.net><br>To: Philip Pellouchoud <phil@san.rr.com>; gstreamer-devel@lists.sourceforge.net<br>Sent: Wednesday, September 12, 2007 9:14:10 AM<br>Subject: Re: [gst-devel] location of plugins on a windows system...<br><br>
<style>
<!--
_filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
span.EmailStyle17
        {font-family:"Calibri", "sans-serif";color:#1F497D;}
.MsoChpDefault
        {font-size:10.0pt;}
_filtered {margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {}
-->
</style>
<div class="Section1">
<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">You should check that GST_PLUGIN_PATH is well defined in your
environment variables.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">If yes, you should check that it’s accessible from your app by
getting it with getenv(“GST_PLUGIN_PATH”).</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Regards,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Sebastien</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"> </span></p>
<div>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">From:</span></b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">
gstreamer-devel-bounces@lists.sourceforge.net [mailto:gstreamer-devel-bounces@lists.sourceforge.net]
<b>On Behalf Of </b>Philip Pellouchoud<br>
<b>Sent:</b> mercredi 12 septembre 2007 17:10<br>
<b>To:</b> gstreamer-devel@lists.sourceforge.net<br>
<b>Subject:</b> [gst-devel] location of plugins on a windows system...</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom: 12pt;">Hi all,<br>
<br>
I am new to gstreamer and I am running into something simple that I can’t seem
to fix.<br>
<br>
I’ve got a very tiny app:<br>
<br>
int main(int argc, char* argv[])<br>
{<br>
gst_init(NULL, NULL);<br>
<br>
guint nMajor(0), nMinor(0), nMicro(0), nNano(0);<br>
gst_version(&nMajor, &nMinor, &nMicro,
&nNano);<br>
<br>
GMainLoop* loop(NULL);<br>
loop = g_main_loop_new(NULL, FALSE);<br>
<br>
GstElement* play =
gst_element_factory_make("playbin", "play");<br>
g_object_set (G_OBJECT (play), "uri",
"C:\\test.mp3", NULL);<br>
<br>
....<br>
<br>
return 0;<br>
}<br>
<br>
play is NULL.<br>
<br>
That’s because it can’t find the libgstplaybin.dll in C:\Program Files\Common
Files\GStreamer\0.10\lib\gstreamer-0.10.<br>
<br>
If I CD to C:\Program Files\Common Files\GStreamer\0.10\bin and run<br>
gst-launch-0.10.exe playbin uri=file://C:\\test.mp3<br>
<br>
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.<br>
<br>
Any help would be great, thanks!<br>
<br>
-phil</p>
</div>
<p class="MsoNormal"> </p>
<div class="MsoNormal" style="text-align: center;" align="center">
<hr align="center" size="1" width="100%">
</div>
<p class="MsoNormal"><a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/evt=51201/*http:/autos.yahoo.com/new_cars.html;_ylc=X3oDMTE5NWVzZGVyBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDYXV0b3MtbmV3Y2Fy">Check out </a>the hottest 2008 models today at Yahoo! Autos. </p>
</div>
<p class="MsoNormal"> </p>
<div class="MsoNormal" style="text-align: center;" align="center">
<hr align="center" size="1" width="100%">
</div>
<p class="MsoNormal">Tonight's top picks. What will you watch tonight? <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/tv/mail/tagline/tonightspicks/evt=48220/*http:/tv.yahoo.com/%20%0a">Preview
the hottest shows</a> on Yahoo! TV. </p>
</div>
</div><br></div></div><br>
<hr size=1>Don't let your dream ride pass you by. <a href="http://us.rd.yahoo.com/evt=51200/*http://autos.yahoo.com/index.html;_ylc=X3oDMTFibjNlcHF0BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDYXV0b3MtZHJlYW1jYXI-"> Make it a reality</a> with Yahoo! Autos.
</body></html>