It is a good idea to check GST_PLUGIN_PATH and PATH are corect.<br>You must set GST_PLUGIN_PATH to the directory where your libgstplaybin.dll lives.<br><br>Regards,<br>Kwang Yul Seo<br><br><br><div><span class="gmail_quote">
2007/9/12, Philip Pellouchoud &lt;<a href="mailto:pellouch@yahoo.com">pellouch@yahoo.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 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>&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'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.&nbsp; Plays the file and everything.&nbsp; 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.&nbsp; 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<br><span class="ad"><br></span></div><span class="ad"><br>
      <hr size="1"> <a href="http://us.rd.yahoo.com/evt=51201/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE5NWVzZGVyBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDYXV0b3MtbmV3Y2Fy" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Check out </a> the hottest 2008 models today at Yahoo! Autos.



</span></div><br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by: Splunk Inc.<br>Still grepping through log files to find problems? &nbsp;Stop.<br>Now Search log events and configuration files using AJAX and a browser.
<br>Download your FREE copy of Splunk now &gt;&gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://get.splunk.com/" target="_blank">http://get.splunk.com/</a><br>_______________________________________________
<br>gstreamer-devel mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br><br></blockquote></div><br>