<span>Hey Sébastien, thanks for lending a hand. Here&#39;s the situation:<br><br>I&#39;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> [2], but now I&#39;m building Gstreamer 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 with this error:<br><br>
&gt; Debug Assertion Failed!<br>&gt; File: write.c<br>&gt; Line: 68<br>&gt; Expression: (_osfile(fh) &amp; FOPEN)<br><br>The error happens in line 72 of gstregistryxml.c, in the method gst_registry_save. The line is:<br><br>
&gt; written = write (registry-&gt;cache_file, str, len);<br><br>I think the error arises because registry-&gt;cache_file has the value 3. registry-&gt;cache_file is assigned on line 849 of gstregistryxml.c in the method gst_registry_xml_write_cache. The line is:
<br><br>&gt; registry-&gt;cache_file = g_mkstemp (tmp_location);<br><br>Prior to execution of this line, registry-&gt;cache_file is 0. After execution, it is 3. Someone on IRC advised me that this is a problem having to do with the fact that I&#39;m building Gstreamer myself, but not glib. Unfortunately I&#39;m not able to build glib for a number of reasons, so I just got around this problem by inserting
<br><br>&gt; goto fail;<br><br>before the registry-&gt;cache_file assignment. Gstreamer now initializes.<br><br>Now to the playback problem. Banshee playback is handled in a C library called libbanshee. The relevant file is 
gst-playback-0.10.c [3]. When a song is played in the interface, the method gst_playback_open is called, and then gst_playback_play (see </span><span>gst-playback-0.10.c)</span><span>. The error occurs while executing </span>
<span>gst_playback_play.<br><br>I&#39;ve traced the problem to the method gst_base_src_start in gstbasesrc.c on line 1986:<br><br>&gt; &nbsp;&nbsp;&nbsp; result = bclass-&gt;start (basesrc);<br><br>I&#39;m not able to enter that function while debugging (what code is this pointing to?) but when it returns, result is 0. I can provide loads of stack trace info or variable values, but I don&#39;t know what would be helpful for you to know. I don&#39;t understand what much of the code is doing, but I do know that this is happening during a pad activation (whatever that is).
<br><br>Thanks again for helping out and let me know what other info I can provide.<br><br>Best,<br>Scott</span><span><br><br>[1] <a href="https://sourceforge.net/project/showfiles.php?group_id=74626&amp;package_id=223067">
https://sourceforge.net/project/showfiles.php?group_id=74626&amp;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] <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></span><br>
<div><span class="gmail_quote">On 6/28/07, <b class="gmail_sendername">Sébastien Moutte</b> &lt;<a href="mailto:sebastien@moutte.net">sebastien@moutte.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hey Scott,<br><br>I&#39;ll be happy to help you making Banshee work with Gstreamer in Windows<br>if I can.<br>What&#39;s the status of the problems you were having ?<br>This error &quot;GStreamer resource error: OpenRead&quot; makes me think about a
<br>LIBC problem as there are some incompatiblities (with files 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>&gt; Hey GStreamer folks! I&#39;m porting the music app Banshee [1] to Windows<br>&gt; as a project for the Google Summer of Code. Banshee uses gstreamer for<br>&gt; its playback backend so I&#39;m now in the process of making that work on
<br>&gt; Windows. Unfortunately, I&#39;m having a bit of trouble. I&#39;ll be fully<br>&gt; investigating the issue come next week, but I thought I&#39;d start my<br>&gt; quest be making contact with the mailing list. I&#39;ve summarized the
<br>&gt; trouble I&#39;m having on our Summer of Code list [2] so if anyone has a<br>&gt; spare moment and wouldn&#39;t mind lending a hand to a gstreamer newcomer,<br>&gt; I&#39;d appreciate any input you might have. Thanks!
<br>&gt;<br>&gt; [1] <a href="http://banshee-project.org/Main_Page">http://banshee-project.org/Main_Page</a><br>&gt; [2]<br>&gt; <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>&gt; &lt;<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>&gt;<br>&gt;<br>&gt; --<br>&gt; Scott.<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; -------------------------------------------------------------------------<br>&gt; This 
SF.net email is sponsored by DB2 Express<br>&gt; Download DB2 Express C - the FREE version of DB2 express and take<br>&gt; control of your XML. No limits. Just data. Click to get it now.<br>&gt; <a href="http://sourceforge.net/powerbar/db2/">
http://sourceforge.net/powerbar/db2/</a><br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; gstreamer-devel mailing list
<br>&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
</a><br>&gt;<br></blockquote></div>