<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"><style type="text/css"><!-- DIV {margin:0px;}--></style><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> 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<br><br></div><br>
<hr size="1"> <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.
</div><br>
<hr size=1>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/
">Preview the hottest shows</a> on Yahoo! TV.
</body></html>