I've replied inline.<br><br><div><span class="gmail_quote">On 7/3/07, <b class="gmail_sendername">Sébastien Moutte</b> <<a href="mailto:sebastien@moutte.net">sebastien@moutte.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What version of Visual Studio are you using to build GStreamer ?<br>Depending on the version used, GStreamer libraries will be linked on<br>different version of MSVCRT.<br>You must link on the same version of the libc for GLIB and GSTREAMER
<br>(you can't merge different version and you can't merge DEBUG version<br>with RELEASE version).</blockquote><div><br>I'm using VS2005 which links to MSVCR80.DLL. How can I specify the use of an older version of the C runtime? I tried changing /MT to /MD, but that just removed the MSVCR80 reference; it did not add a reference to
MSVCRT.dll.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Dependency Walker is a good tool to check your dependencies<br>(<a href="http://www.dependencywalker.com/">
http://www.dependencywalker.com/</a>)<br>One more thing, have you made some tests with gst-launch with the<br>version of GStreamer you built ? Because if there is a problem between<br>GStreamer and Glib dependencies, you will get error with gst-launch and
<br>gst-inspect.</blockquote><div><br>When I try to use gst-launch with the gstreamer binaries that I build myself, I get the same initialization problem (probably related to the MSVCRT problem). When I use gst-launch with the distribution binaries, here's the error I get:
<br>> gst-launch-0.10.exe filesrc location=dance.mp3 ! mad ! autoaudiosink<br>Setting pipeline to PAUSED ...<br>Pipeline is PREROLLING ...<br>ERROR: from element /pipeline0/filesrc0: Internal data flow error.<br>Additional debug info: E:\devel-cvs\src\gstreamer\libs\gst\base\gstbasesrc.c(1811): (function) (): /pipeline0/filesrc0:
<br>streaming task paused, reason not-linked (-1)<br>ERROR: pipeline doesn't want to preroll.<br>Setting pipeline to NULL ...<br>FREEING pipeline ...<br><br>When I try to open that file with the test app gstplayer [1], it works fine.
<br><br>Thanks,<br>Scott<br><br>[1] <a href="http://perso.orange.es/moutte983/gstreamer/">http://perso.orange.es/moutte983/gstreamer/</a><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Scott Peterson a écrit :<br>> Is there anything else I could provide or do that would be of use?<br>><br>> On 6/29/07, *Scott Peterson* <<a href="mailto:lunchtimemama@gmail.com">lunchtimemama@gmail.com</a><br>
> <mailto:<a href="mailto:lunchtimemama@gmail.com">lunchtimemama@gmail.com</a>>> wrote:<br>><br>> Hey Sébastien, thanks for lending a hand. Here's the situation:<br>><br>> I'm using glib binaries from the OpenVista project [1].
<br>><br>> I initially used Gstreamer 0.10.13 binaries from <a href="http://freedesktop.org">freedesktop.org</a><br>> <<a href="http://freedesktop.org">http://freedesktop.org</a>> [2], but now I'm building Gstreamer
<br>> 0.10.13 myself with Visual Studio so that I can debug the problem.<br>><br>> I tried to initialize the Gstreamer that I built, but it failed<br>> with this error:<br>><br>> > Debug Assertion Failed!
<br>> > File: write.c<br>> > Line: 68<br>> > Expression: (_osfile(fh) & FOPEN)<br>><br>> The error happens in line 72 of gstregistryxml.c, in the method<br>> gst_registry_save. The line is:
<br>><br>> > written = write (registry->cache_file, str, len);<br>><br>> I think the error arises because registry->cache_file has the<br>> value 3. registry->cache_file is assigned on line 849 of
<br>> gstregistryxml.c in the method gst_registry_xml_write_cache. The<br>> line is:<br>><br>> > registry->cache_file = g_mkstemp (tmp_location);<br>><br>> Prior to execution of this line, registry->cache_file is 0. After
<br>> execution, it is 3. Someone on IRC advised me that this is a<br>> problem having to do with the fact that I'm building Gstreamer<br>> myself, but not glib. Unfortunately I'm not able to build glib for
<br>> a number of reasons, so I just got around this problem by inserting<br>><br>> > goto fail;<br>><br>> before the registry->cache_file assignment. Gstreamer now initializes.<br>><br>
> Now to the playback problem. Banshee playback is handled in a C<br>> library called libbanshee. The relevant file is<br>> gst-playback-0.10.c [3]. When a song is played in the interface,<br>> the method gst_playback_open is called, and then gst_playback_play
<br>> (see gst-playback-0.10.c). The error occurs while executing<br>> gst_playback_play.<br>><br>> I've traced the problem to the method gst_base_src_start in<br>> gstbasesrc.c on line 1986:
<br>><br>> > result = bclass->start (basesrc);<br>><br>> I'm not able to enter that function while debugging (what code is<br>> this pointing to?) but when it returns, result is 0. I can provide
<br>> loads of stack trace info or variable values, but I don't know<br>> what would be helpful for you to know. I don't understand what<br>> much of the code is doing, but I do know that this is happening
<br>> during a pad activation (whatever that is).<br>><br>> Thanks again for helping out and let me know what other info I can<br>> provide.<br>><br>> Best,<br>> Scott<br>><br>> [1]
<br>> <a href="https://sourceforge.net/project/showfiles.php?group_id=74626&package_id=223067">https://sourceforge.net/project/showfiles.php?group_id=74626&package_id=223067</a><br>> <<a href="https://sourceforge.net/project/showfiles.php?group_id=74626&package_id=223067">
https://sourceforge.net/project/showfiles.php?group_id=74626&package_id=223067</a>><br>> [2] <a href="http://gstreamer.freedesktop.org/pkg/windows/releases/">http://gstreamer.freedesktop.org/pkg/windows/releases/
</a><br>> [3]<br>> <a href="http://svn.gnome.org/viewcvs/banshee/trunk/banshee/libbanshee/gst-playback-0.10.c?view=markup">http://svn.gnome.org/viewcvs/banshee/trunk/banshee/libbanshee/gst-playback-0.10.c?view=markup
</a><br>> <<a href="http://svn.gnome.org/viewcvs/banshee/trunk/banshee/libbanshee/gst-playback-0.10.c?view=markup">http://svn.gnome.org/viewcvs/banshee/trunk/banshee/libbanshee/gst-playback-0.10.c?view=markup</a>
><br>><br>><br>> On 6/28/07, *Sébastien Moutte* <<a href="mailto:sebastien@moutte.net">sebastien@moutte.net</a><br>> <mailto:<a href="mailto:sebastien@moutte.net">sebastien@moutte.net</a>>> wrote:
<br>><br>> Hey Scott,<br>><br>> I'll be happy to help you making Banshee work with Gstreamer<br>> in Windows<br>> if I can.<br>> What's the status of the problems you were having ?
<br>> This error "GStreamer resource error: OpenRead" makes me think<br>> about a<br>> LIBC problem as there are some incompatiblities (with files<br>> descriptors<br>
> for ie) between msvcrt.dll and newer versions.<br>> What binaries of GStreamer are you using ?<br>><br>> Regards,<br>> Sebastien<br>><br>> Scott Peterson a écrit :
<br>> > Hey GStreamer folks! I'm porting the music app Banshee [1] to<br>> Windows<br>> > as a project for the Google Summer of Code. Banshee uses<br>> gstreamer for<br>
> > its playback backend so I'm now in the process of making that<br>> work on<br>> > Windows. Unfortunately, I'm having a bit of trouble. I'll be<br>> fully<br>
> > investigating the issue come next week, but I thought I'd<br>> start my<br>> > quest be making contact with the mailing list. I've<br>> summarized the<br>> > trouble I'm having on our Summer of Code list [2] so if
<br>> anyone has a<br>> > spare moment and wouldn't mind lending a hand to a gstreamer<br>> newcomer,<br>> > I'd appreciate any input you might have. Thanks!<br>> >
<br>> > [1] <a href="http://banshee-project.org/Main_Page">http://banshee-project.org/Main_Page</a><br>> > [2]<br>> > <a href="http://groups.google.com/group/mono-soc-2007/browse_thread/thread/d1d8510fb208bad">
http://groups.google.com/group/mono-soc-2007/browse_thread/thread/d1d8510fb208bad</a><br>> > <<br>> <a href="http://groups.google.com/group/mono-soc-2007/browse_thread/thread/d1d8510fb208bad">http://groups.google.com/group/mono-soc-2007/browse_thread/thread/d1d8510fb208bad
</a><br>> <<a href="http://groups.google.com/group/mono-soc-2007/browse_thread/thread/d1d8510fb208bad">http://groups.google.com/group/mono-soc-2007/browse_thread/thread/d1d8510fb208bad</a>>><br>> >
<br>> > --<br>> > Scott.<br>> > ------------------------------------------------------------------------<br>> ><br>> > -------------------------------------------------------------------------
<br>> > This SF.net email is sponsored by DB2 Express<br>> > Download DB2 Express C - the FREE version of DB2 express and take<br>> > control of your XML. No limits. Just data. Click to get it now.
<br>> > <a href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</a><br>> > ------------------------------------------------------------------------<br>> >
<br>> > _______________________________________________<br>> > gstreamer-devel mailing list<br>> > <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net
</a><br>> <mailto:<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>><br>> > <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>> <<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a>>
<br>> ><br>><br>><br>><br>><br>> --<br>> Scott.<br></blockquote></div><br><br clear="all"><br>-- <br>Scott.