Hi Kevin.
 
I had the same issue in my first win32 application as well.
 
This assert gets thrown if you do not set up your debug category before GStreamer tries to use the messaging engine (ie. GST_INFO, GST_DEBUG, GST_ERROR, GST_WARNING), etc. These messages are called at various times by the GStreamer code. In my case (and perhaps yours), I used the gst_init_check() function as my first command, which called GST_INFO, which raised the assertion.
 
Even though this assertion gets thrown, it should only affect your logging capabilities - your code should still execute afterwards (not an expert, but that is what I have seen personally).
 
To set up your category, refer to gstinfo.h... I haven't it done it myself yet, but it looks like you'll need to do at least 3 steps:
GST_DEBUG_CATEGORY_STATIC(gst_whatever_you_want_to_call_it);
#define GST_CAT_DEFAULT gst_whatever_you_want_to_call_it
GST_DEBUG_CATEGORY_INIT(gst_whatever_you_want_to_call_it, "name",0,"description");
 
Haven't investigated why this is only required in Windows - I assume perhaps non-Win32 apps have a default category already defined.
 
Note that it just so happens that gst-launch and gst-inspect don't use the messaging engine themselves, and hence will not throw the assertion.
 
Shawn
 
Re: gstreamer on Win32
From: <sebastien@mo...> - 2007-01-10 01:22
Hi Kevin,

Binaries of this website are all in release mode then they don't include
debug information.
About the critical error, please make a test using gst-inspect-0.10 and
gst-launch-0.10 to see if you get this error with them.

Sebastien

Kevin Wong a �crit :
> Hi,
> I want to build a gstreamer on windows, so i follow
> http://perso.orange.es/moutte983/gstreamer/ to build my application on
> windows. After that I can compile my application at vs 2005 C++
> express. Finally when i run my application, the command line is shown
> that:
> ** (XXXX.exe:3560): CRITICAL **: file
> X:\devel-release\src_releases\gstreamer
> \gst\gstinfo.c: line 413: assertion `category != NULL' failed
> And the application can't running.
> BTW, i hv using the vc debugger. I hv observer that when the gst_init
> (&argc, &argv); was executed, the command line was shown the msg.
> what can i do?
> i hv installed the follow
> gstreamer-0.10.11.win32dev
> gstreamer-0.10.11.win32
> gstreamer-0.10.11.setup
> gtk+-2.10.6-1-setup
> pkgconfig-0.18
> libxml2-2.6.27
> libiconv-1.11
>
> Finally i want to ask should i place the " libgstreamer-0.10.dll" this
> dll file to the debug file when run my application? Should that hv
> another way to combine the exe with this file?
>
> Thank for your help.
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel@li...
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

The information contained in this e-mail message is PRIVATE. It may contain confidential information and may be legally privileged. It is intended for the exclusive use of the addressee(s). If you are not the intended recipient, you are hereby notified that any dissemination, distribution or reproduction of this communication is strictly prohibited. If the intended recipient(s) cannot be reached or if a transmission problem has occurred, please notify the sender immediately by return e-mail and destroy all copies of this message.
Thank you.