Re: location of plugins on a windows system...

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: location of plugins on a windows system...

KwangYul Seo
It is a good idea to check GST_PLUGIN_PATH and PATH are corect.
You must set GST_PLUGIN_PATH to the directory where your libgstplaybin.dll lives.

Regards,
Kwang Yul Seo


2007/9/12, Philip Pellouchoud <[hidden email]>:
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



<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 the hottest 2008 models today at Yahoo! Autos.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://get.splunk.com/" target="_blank">http://get.splunk.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
<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



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel