<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {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
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {mso-style-name:msochpdefault;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";}
span.emailstyle17
        {mso-style-name:emailstyle17;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1><pre><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Sure, just use putenv or g_setenv to set this environment variable programmatically only for your application.<o:p></o:p></span></pre><pre><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>By this way, you can install a private copy of gstreamer only with the libraries and plugins you need.<o:p></o:p></span></pre>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Philip Pellouchoud
[mailto:pellouch@yahoo.com] <br>
<b>Sent:</b> mercredi 12 septembre 2007 19:37<br>
<b>To:</b> Sebastien Moutte; Philip Pellouchoud;
gstreamer-devel@lists.sourceforge.net<br>
<b>Subject:</b> Re: [gst-devel] location of plugins on a windows system...<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>Is there any way to set the
plugin path programmatically (other than setting the environment variable
programmatically :-).<br>
<br>
-phil<o:p></o:p></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>----- Original Message ----<br>
From: Sebastien Moutte &lt;sebastien@moutte.net&gt;<br>
To: Philip Pellouchoud &lt;phil@san.rr.com&gt;;
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...<o:p></o:p></p>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You should check that GST_PLUGIN_PATH is well defined in your environment
variables.</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>If yes, you should check that it&#8217;s accessible from your
app by getting it with getenv(&#8220;GST_PLUGIN_PATH&#8221;).</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Regards,</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Sebastien</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<div>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0cm 0cm 0cm;
border-color:-moz-use-text-color -moz-use-text-color'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;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><o:p></o:p></p>

</div>

</div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>Hi all,<br>
<br>
I am new to gstreamer and I am running into something simple that I can&#8217;t
seem to fix.<br>
<br>
I&#8217;ve got a very tiny app:<br>
<br>
int main(int argc, char* argv[])<br>
{<br>
&nbsp;&nbsp;&nbsp; gst_init(NULL, NULL);<br>
<br>
&nbsp;&nbsp;&nbsp; guint nMajor(0), nMinor(0), nMicro(0), nNano(0);<br>
&nbsp;&nbsp;&nbsp; gst_version(&amp;nMajor, &amp;nMinor, &amp;nMicro,
&amp;nNano);<br>
<br>
&nbsp;&nbsp;&nbsp; GMainLoop* loop(NULL);<br>
&nbsp;&nbsp;&nbsp; loop = g_main_loop_new(NULL, FALSE);<br>
<br>
&nbsp;&nbsp;&nbsp; GstElement* play =
gst_element_factory_make(&quot;playbin&quot;, &quot;play&quot;);<br>
&nbsp;&nbsp;&nbsp; g_object_set (G_OBJECT (play), &quot;uri&quot;,
&quot;C:\\test.mp3&quot;, NULL);<br>
<br>
&nbsp;&nbsp;&nbsp; ....<br>
<br>
&nbsp;&nbsp;&nbsp; return 0;<br>
}<br>
<br>
play is NULL.<br>
<br>
That&#8217;s because it can&#8217;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.&nbsp; Plays the file and everything.&nbsp; I think
what&#8217;s happening is that within my app (which is in a totally different
directory), it can&#8217;t find that DLL, and so it can&#8217;t create the
&#8220;playbin&#8221; element.&nbsp; I tried copying those DLLs into my
application/debug directory but it didn&#8217;t help, that kept returning NULL.<br>
<br>
Any help would be great, thanks!<br>
<br>
-phil<o:p></o:p></p>

</div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=1 width="100%" align=center>

</div>

<p class=MsoNormal><a
href="http://us.rd.yahoo.com/evt=51201/*http:/autos.yahoo.com/new_cars.html;_ylc=X3oDMTE5NWVzZGVyBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDYXV0b3MtbmV3Y2Fy"
target="_blank">Check out </a>the hottest 2008 models today at Yahoo! Autos. <o:p></o:p></p>

</div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=1 width="100%" align=center>

</div>

<p class=MsoNormal>Tonight's top picks. What will you watch tonight? <a
href="http://us.rd.yahoo.com/tv/mail/tagline/tonightspicks/evt=48220/*http:/tv.yahoo.com/%20%0a"
target="_blank">Preview the hottest shows</a> on Yahoo! TV. <o:p></o:p></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=1 width="100%" align=center>

</div>

<p class=MsoNormal>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. <o:p></o:p></p>

</div>

</body>

</html>