Re: gstreamer on Win32
"Bienert, Shawn" <[email protected]> Tue, 23 Jan 2007 14:16:31 -0700
| Newsgroups | gmane.comp.video.gstreamer.daily |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============0870790786== Content-Transfer-Encoding: 7bit Content-Class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C73F33.C13BEF96" This is a multi-part message in MIME format. ------_=_NextPart_001_01C73F33.C13BEF96 X-EC0D2A8E-5CB7-4969-9C36-46D859D137BE-PartID: FF2B3F0C-CC24-4814-AC8D-14362729D8FE Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Kevin. =20 I had the same issue in my first win32 application as well. =20 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. =20 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).=20 =20 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"); =20 Haven't investigated why this is only required in Windows - I assume = perhaps non-Win32 apps have a default category already defined. =20 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. =20 Shawn =20 Re: gstreamer on Win32 From: <sebastien@mo...> - 2007-01-10 01:22=20 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=20 gst-launch-0.10 to see if you get this error with them. Sebastien Kevin Wong a =EF=BF=BDcrit : > Hi, > I want to build a gstreamer on windows, so i follow=20 > http://perso.orange.es/moutte983/gstreamer/ to build my application on = > windows. After that I can compile my application at vs 2005 C++=20 > express. Finally when i run my application, the command line is shown=20 > that: > ** (XXXX.exe:3560): CRITICAL **: file=20 > X:\devel-release\src_releases\gstreamer > \gst\gstinfo.c: line 413: assertion `category !=3D NULL' failed > And the application can't running. > BTW, i hv using the vc debugger. I hv observer that when the gst_init=20 > (&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=20 > 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=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > = ------------------------------------------------------------------------ > > _______________________________________________ > gstreamer-devel mailing list > gstreamer-devel@li... > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel >=09 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.=20 Thank you.=20 ------_=_NextPart_001_01C73F33.C13BEF96 X-EC0D2A8E-5CB7-4969-9C36-46D859D137BE-PartID: 9EFEAC21-AB51-46E7-8F66-72543DE844AA Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable =EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"> <META content=3D"MSHTML 6.00.2900.3020" name=3DGENERATOR></HEAD> <BODY> <DIV><FONT face=3DArial size=3D2><SPAN class=3D284414820-23012007>Hi=20 Kevin.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN = class=3D284414820-23012007></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D284414820-23012007>I had = the same issue=20 in my first win32 application as well.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN = class=3D284414820-23012007></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D284414820-23012007>This = assert gets=20 thrown if you do not set up your debug category before GStreamer tries = to use=20 the messaging engine (ie. GST_INFO, GST_DEBUG, GST_ERROR, = GST_WARNING),=20 etc. These messages are called at various times by the GStreamer code. = In my=20 case (and perhaps yours), I used the gst_init_check() function as my = first=20 command, which called GST_INFO, which raised the = assertion.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN = class=3D284414820-23012007></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D284414820-23012007>Even = though this=20 assertion gets thrown, it should only affect your logging capabilities - = your=20 code should still execute afterwards (not an expert, but that is what I = have=20 seen personally). </SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN = class=3D284414820-23012007></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D284414820-23012007>To set = up your=20 category, refer to gstinfo.h... I haven't it done it myself yet, but it = looks=20 like you'll need to do at least 3 steps:</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN = class=3D284414820-23012007>GST_DEBUG_CATEGORY_STATIC(gst_whatever_you_wan= t_to_call_it);</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN = class=3D284414820-23012007>#define=20 GST_CAT_DEFAULT gst_whatever_you_want_to_call_it</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN = class=3D284414820-23012007>GST_DEBUG_CATEGORY_INIT(gst_whatever_you_want_= to_call_it,=20 "name",0,"description");</SPAN></FONT></DIV> <DIV><SPAN class=3D284414820-23012007><FONT face=3DArial = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D284414820-23012007><FONT face=3DArial = size=3D2>Haven't investigated=20 why this is only required in Windows - I assume perhaps non-Win32 apps = have a=20 default category already defined.</FONT></SPAN></DIV> <DIV><SPAN class=3D284414820-23012007><FONT face=3DArial = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D284414820-23012007><FONT face=3DArial size=3D2>Note = that it just so=20 happens that gst-launch and gst-inspect don't use the messaging engine=20 themselves, and hence will not throw the assertion.</FONT></SPAN></DIV> <DIV><SPAN class=3D284414820-23012007><FONT face=3DArial = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D284414820-23012007><FONT face=3DArial = size=3D2>Shawn</FONT></SPAN></DIV> <DIV><SPAN class=3D284414820-23012007><FONT face=3DArial = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D284414820-23012007><TR><TD nowrap=3D"nowrap" = bgcolor=3D"#dddddd"> <DIV class=3Dforum> <DIV><B>Re: gstreamer on=20 Win32<!-- google_ad_section_end --></B></DIV><SMALL>From:=20 <sebastien@mo...> - 2007-01-10 01:22</SMALL> = </DIV></TD></TR><TR><TD><!-- google_ad_section_start -->Hi=20 Kevin,<BR><BR>Binaries of this website are all in release mode then they = don't=20 include <BR>debug information.<BR>About the critical error, please make = a test=20 using gst-inspect-0.10 and <BR>gst-launch-0.10 to see if you get this = error with=20 them.<BR><BR>Sebastien<BR><BR>Kevin Wong a =EF=BF=BDcrit :<BR>> = Hi,<BR>> I want to=20 build a gstreamer on windows, so i follow <BR>> <A = href=3D"http://perso.orange.es/moutte983/gstreamer/">http://perso.orange.= es/moutte983/gstreamer/</A> to build my=20 application on <BR>> windows. After that I can compile my application = at vs=20 2005 C++ <BR>> express. Finally when i run my application, the = command line=20 is shown <BR>> that:<BR>> ** (XXXX.exe:3560): CRITICAL **: file = <BR>>=20 X:\devel-release\src_releases\gstreamer<BR>> \gst\gstinfo.c: line = 413:=20 assertion `category !=3D NULL' failed<BR>> And the application can't=20 running.<BR>> BTW, i hv using the vc debugger. I hv observer that = when the=20 gst_init <BR>> (&argc, &argv); was executed, the command line = was=20 shown the msg.<BR>> what can i do?<BR>> i hv installed the = follow<BR>>=20 gstreamer-0.10.11.win32dev<BR>> gstreamer-0.10.11.win32<BR>>=20 gstreamer-0.10.11.setup<BR>> gtk+-2.10.6-1-setup<BR>>=20 pkgconfig-0.18<BR>> libxml2-2.6.27<BR>> = libiconv-1.11<BR>><BR>>=20 Finally i want to ask should i place the " libgstreamer-0.10.dll" this = <BR>>=20 dll file to the debug file when run my application? Should that hv = <BR>>=20 another way to combine the exe with this file?<BR>><BR>> Thank for = your=20 help.<BR>><BR>>=20 ------------------------------------------------------------------------<= BR>><BR>>=20 -------------------------------------------------------------------------= <BR>>=20 Take Surveys. Earn Cash. Influence the Future of IT<BR>> Join=20 SourceForge.net's Techsay panel and you'll get the chance to share = your<BR>>=20 opinions on IT & business topics through brief surveys - and earn=20 cash<BR>> <A = href=3D"http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsource= forge&CID=3DDEVDEV">http://www.techsay.com/default.php?page=3Djoin.ph= p&p=3Dsourceforge&CID=3DDEVDEV</A><BR>>=20 ------------------------------------------------------------------------<= BR>><BR>>=20 _______________________________________________<BR>> gstreamer-devel = mailing=20 list<BR>> gstreamer-devel@li...<BR>> <A = href=3D"https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">htt= ps://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR>></TD= ></TR></SPAN></DIV></BODY><!--[object_id=3D#gdcanada.com#]--><FONT = face=3DTahoma><FONT color=3D#0000ff><SPAN style=3D"FONT-WEIGHT: bold; = FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT color=3D#000000> <P align=3Dleft><FONT face=3DTahoma size=3D2><FONT color=3D#0000ff><FONT = face=3DArial color=3D#000000 size=3D1>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. <BR>Thank you.</FONT> = </FONT></FONT></P></FONT></SPAN><FONT = size=3D2></FONT></FONT></FONT></HTML> ------_=_NextPart_001_01C73F33.C13BEF96-- --===============0870790786== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --===============0870790786== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gstreamer-daily mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gstreamer-daily --===============0870790786==--