<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-3845</id>
	<title>Nabble - xine-devel</title>
	<updated>2009-11-23T17:51:40Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/xine-devel-f3845.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/xine-devel-f3845.html" />
	<subtitle type="html">Mailing list archive for xine-devel</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26489335</id>
	<title>[PATCH] vdpau_mpeg12 pts fix</title>
	<published>2009-11-23T17:51:40Z</published>
	<updated>2009-11-23T17:51:40Z</updated>
	<author>
		<name>Bugzilla from hftom@free.fr</name>
	</author>
	<content type="html">Fixes audio/video sync in mpeg12 streams.
&lt;br&gt;Applies to xine-lib-1.2-vdpau
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Christophe Thommeret
&lt;br&gt;&lt;br /&gt;&lt;tt&gt;[vdpau_mpeg12_pts_fix.diff]&lt;/tt&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;diff -r d6d147bfa789 src/video_dec/libvdpau/vdpau_mpeg12.c
&lt;br&gt;--- a/src/video_dec/libvdpau/vdpau_mpeg12.c	Sun Nov 22 23:51:02 2009 +0000
&lt;br&gt;+++ b/src/video_dec/libvdpau/vdpau_mpeg12.c	Tue Nov 24 02:49:59 2009 +0100
&lt;br&gt;@@ -794,7 +794,8 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;if ( !buf-&amp;gt;size )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp;seq-&amp;gt;cur_pts = buf-&amp;gt;pts;
&lt;br&gt;+ &amp;nbsp;if ( buf-&amp;gt;pts )
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;seq-&amp;gt;cur_pts = buf-&amp;gt;pts;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;int size = seq-&amp;gt;bufpos+buf-&amp;gt;size;
&lt;br&gt;&amp;nbsp; &amp;nbsp;if ( seq-&amp;gt;bufsize &amp;lt; size ) {
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489335&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--vdpau_mpeg12-pts-fix-tp26489335p26489335.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26475390</id>
	<title>xine library (Alsa plug-in) doen't support to write to a NULL PCM device</title>
	<published>2009-11-23T02:12:22Z</published>
	<updated>2009-11-23T02:12:22Z</updated>
	<author>
		<name>Tung Dang-2</name>
	</author>
	<content type="html">&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot; style=&quot;font: inherit;&quot;&gt;Hi all,&lt;br&gt;&lt;br&gt;I am porting &lt;span style=&quot;font-weight: bold;&quot;&gt;opie mediaplayer2&lt;/span&gt; using &lt;span style=&quot;font-weight: bold;&quot;&gt;libxine1.1.16.3-r1&lt;/span&gt;. I configure my mediaplayer2 to used &lt;span style=&quot;font-weight: bold;&quot;&gt;alsa plug-in&lt;/span&gt; from &lt;span style=&quot;font-weight: bold;&quot;&gt;libxine.&lt;/span&gt;&lt;br&gt;My opie mediaplayer2 now can play mp3 file using libxine and direct pcm stream to a real hardware pcm device. &lt;br&gt;Now i want to direct the pcm stream to another pc over ethernet port. So i modify the /etc/asound.conf to direct the pcm stream to a PCM null device&lt;br&gt;&lt;br&gt;My /etc/asound.conf is below&lt;br&gt;# default dmix configuration&lt;br&gt;&lt;br&gt;pcm.!default {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type file&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; slave { pcm mynull }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file &quot;| /dragon/bin/audio_client 192.168.8.2&quot; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; format
 &quot;raw&quot;&lt;br&gt;}&lt;br&gt;&lt;br&gt;pcm.mynull{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type null&lt;br&gt;}&lt;br&gt;&lt;br&gt;My program can direct the sound over network when play another program such as aplay (which doesn't use libxine)&lt;br&gt;&lt;br&gt;&amp;nbsp;&quot;&lt;span style=&quot;font-weight: bold;&quot;&gt;# aplay example.mp3&lt;/span&gt;&quot; &lt;br&gt;but it fail with &lt;br&gt;&quot;&lt;span style=&quot;font-weight: bold;&quot;&gt;# opieplayer2 example.mp3&lt;/span&gt;&quot;&lt;br&gt;&lt;br&gt;My question is how can the libxine support to write to a Null pcm device ?&lt;br&gt;&lt;br&gt;==================================&lt;br&gt;Below is some thing that i capture from console&lt;br&gt;&lt;br&gt;opieplayer2 example.mp3&lt;br&gt;&lt;br&gt;: waiting for initialization thread to finish&lt;br&gt;: Lib::run() finished&lt;br&gt;: initialization thread finished!&lt;br&gt;audio_alsa_out: Audio Device name = default&lt;br&gt;audio_alsa_out: Number of channels = 2&lt;br&gt;opieplayer2: pcm_null.c:142: snd_pcm_null_drop: Assertion `null-&amp;gt;state != SND_PC&lt;br&gt;M_STATE_OPEN' failed.&lt;br&gt;===================================&lt;br&gt;&lt;br&gt;Thanks in
 advanced&lt;br&gt;Tung&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;



&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475390&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/xine-library-%28Alsa-plug-in%29-doen%27t-support-to-write-to-a-NULL-PCM-device-tp26475390p26475390.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26456161</id>
	<title>Re: Forbidden to access parts of Bugzilla</title>
	<published>2009-11-21T04:32:03Z</published>
	<updated>2009-11-21T04:32:03Z</updated>
	<author>
		<name>Diego E. Pettenò</name>
	</author>
	<content type="html">Il giorno Wed, 18/11/2009 alle 22.49 +0000, Darren Salt ha scritto:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Forbidden
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; You don't have permission to access /buglist.cgi on this server.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ----------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Server at bugs.xine-project.org Port 80
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Looks like '&amp;' no longer works for parameter separation. ';' works
&lt;br&gt;&amp;gt; fine,
&lt;br&gt;&amp;gt; though...
&lt;br&gt;&amp;gt; 
&lt;/div&gt;Sorry, a stupid mod_security rule I forgot to disable :( fixed now!
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Diego Elio Pettenò — “Flameeyes”
&lt;br&gt;&lt;a href=&quot;http://blog.flameeyes.eu/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.flameeyes.eu/&lt;/a&gt;&lt;br&gt;&lt;br&gt;If you found a .asc file in this mail and know not what it is,
&lt;br&gt;it's a GnuPG digital signature: &lt;a href=&quot;http://www.gnupg.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gnupg.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26456161&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Forbidden-to-access-parts-of-Bugzilla-tp26416694p26456161.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26417254</id>
	<title>Re: Forbidden to access parts of Bugzilla</title>
	<published>2009-11-18T14:49:36Z</published>
	<updated>2009-11-18T14:49:36Z</updated>
	<author>
		<name>Darren Salt</name>
	</author>
	<content type="html">I demand that Matt Kraai may or may not have written...
&lt;br&gt;&lt;br&gt;&amp;gt; When I try to access some parts of Bugzilla at
&lt;br&gt;&amp;gt; &amp;nbsp;&lt;a href=&quot;http://bugs.xine-project.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.xine-project.org/&lt;/a&gt;&lt;br&gt;&amp;gt; (e.g., when I click on the My Bugs link on that page), I receive a 403
&lt;br&gt;&amp;gt; Forbidden error:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; Forbidden
&lt;br&gt;&amp;gt;&amp;gt; You don't have permission to access /buglist.cgi on this server.
&lt;br&gt;&amp;gt;&amp;gt; ----------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; Server at bugs.xine-project.org Port 80
&lt;br&gt;&lt;br&gt;Looks like '&amp;' no longer works for parameter separation. ';' works fine,
&lt;br&gt;though...
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;| Darren Salt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| linux at youmustbejoking | nr. Ashington, | Doon
&lt;br&gt;| using Debian GNU/Linux | or ds &amp;nbsp; &amp;nbsp;,demon,co,uk &amp;nbsp; &amp;nbsp;| Northumberland | Army
&lt;br&gt;| + &lt;a href=&quot;http://www.youmustbejoking.demon.co.uk/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.youmustbejoking.demon.co.uk/&lt;/a&gt;&amp;nbsp;&amp; &lt;a href=&quot;http://tartarus.org/ds/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tartarus.org/ds/&lt;/a&gt;&lt;br&gt;&lt;br&gt;You will need something shortly after throwing it away.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26417254&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Forbidden-to-access-parts-of-Bugzilla-tp26416694p26417254.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26380890</id>
	<title>SIGSEGV while playing MOV file</title>
	<published>2009-11-16T14:29:46Z</published>
	<updated>2009-11-16T14:29:46Z</updated>
	<author>
		<name>Chris Rankin</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;xine has started to SIGSEGV whenever I try to play certain MOV files. This is the backtrace:
&lt;br&gt;&lt;br&gt;(gdb) where
&lt;br&gt;#0 &amp;nbsp;0xb6505087 in ?? () from /usr/lib/i686/libavcodec.so.52
&lt;br&gt;#1 &amp;nbsp;0xb652d76a in ?? () from /usr/lib/i686/libavcodec.so.52
&lt;br&gt;#2 &amp;nbsp;0xb6379176 in avcodec_decode_video () from /usr/lib/i686/libavcodec.so.52
&lt;br&gt;#3 &amp;nbsp;0xb6b0cfc5 in ff_handle_buffer (buf=&amp;lt;value optimized out&amp;gt;, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; this=&amp;lt;value optimized out&amp;gt;) at ff_video_decoder.c:1252
&lt;br&gt;#4 &amp;nbsp;ff_decode_data (buf=&amp;lt;value optimized out&amp;gt;, this=&amp;lt;value optimized out&amp;gt;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at ff_video_decoder.c:1503
&lt;br&gt;#5 &amp;nbsp;0xb7fa5587 in video_decoder_loop (stream_gen=0x89ce110)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at video_decoder.c:382
&lt;br&gt;#6 &amp;nbsp;0x4407b935 in start_thread () from /lib/libpthread.so.0
&lt;br&gt;#7 &amp;nbsp;0x43fb094e in clone () from /lib/libc.so.6
&lt;br&gt;&lt;br&gt;This is using xine-lib 1.1.16.3hg from the repository, linked against the ffmpeg packages from Fedora 11:
&lt;br&gt;&lt;br&gt;ffmpeg-devel-0.5-3.fc11.i586
&lt;br&gt;ffmpeg-libs-0.5-3.fc11.i586
&lt;br&gt;&lt;br&gt;I have a fragment of a MOV file that reproduces the problem (100K) that I can send to anyone who is interested. The end of the verbose log looks like this:
&lt;br&gt;&lt;br&gt;load_plugins: probing demux 'quicktime'
&lt;br&gt;xine: found demuxer plugin: Apple Quicktime (MOV) and MPEG-4 demux plugin
&lt;br&gt;video discontinuity #1, type is 0, disc_off 0
&lt;br&gt;waiting for audio discontinuity #1
&lt;br&gt;audio discontinuity #1, type is 0, disc_off 0
&lt;br&gt;waiting for in_discontinuity update #1
&lt;br&gt;current time : 14386
&lt;br&gt;vpts adjusted with prebuffer to 26386
&lt;br&gt;load_plugins: plugin ffmpegvideo will be used for video streamtype 25.
&lt;br&gt;load_plugins: plugin mad will be used for audio streamtype 01.
&lt;br&gt;av_offset=0 pts
&lt;br&gt;spu_offset=0 pts
&lt;br&gt;xine_play
&lt;br&gt;video discontinuity #2, type is 3, disc_off 0
&lt;br&gt;waiting for audio discontinuity #2
&lt;br&gt;audio discontinuity #2, type is 3, disc_off 0
&lt;br&gt;waiting for in_discontinuity update #2
&lt;br&gt;current time : 16675
&lt;br&gt;vpts adjusted with prebuffer to 28675
&lt;br&gt;ffmpeg_video_dec: direct rendering enabled
&lt;br&gt;audio_alsa_out:open pause_resume=1
&lt;br&gt;output sample rate 44100
&lt;br&gt;audio jump, diff=-7
&lt;br&gt;xiTK received SIGSEGV signal, RIP.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26380890&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SIGSEGV-while-playing-MOV-file-tp26380890p26380890.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26380872</id>
	<title>Re: Where should the code for my new post-plugin code go (and another plugin question)?</title>
	<published>2009-11-16T14:11:50Z</published>
	<updated>2009-11-16T14:11:50Z</updated>
	<author>
		<name>AL13N</name>
	</author>
	<content type="html">Hello Morten,
&lt;br&gt;&lt;br&gt;I've been on xine-devel mailing list for ages; and today I've been wondering 
&lt;br&gt;about this approach myself. I was planning on starting, but thought to look 
&lt;br&gt;through the mailinglist.
&lt;br&gt;&lt;br&gt;I wonder how far you've been and if you have anything i can start/work further 
&lt;br&gt;on. I'd like to see and use this code (I assure you, it is only for personal 
&lt;br&gt;usage. plus, my LCDproc setup is quite different than standard so...
&lt;br&gt;&lt;br&gt;Anything you have, it doesn't have to build, would be extremely usefull to me.
&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;&lt;br&gt;Maarten
&lt;br&gt;&lt;br&gt;Op woensdag 18 juli 2007 21:34:20 schreef Morten Egelund Rasmussen:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am coding on a post-plugin for xine that sends the current stream
&lt;br&gt;&amp;gt; status to LCDproc, so it is visible on any LCD display that people
&lt;br&gt;&amp;gt; might have attached.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am aware that this plugin might only be interesting to a relative
&lt;br&gt;&amp;gt; small percentage of all xine users out there, which might be a thing
&lt;br&gt;&amp;gt; to take into consideration with the following.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; My question: Where should I submit my code to when it's finally done?
&lt;br&gt;&amp;gt; -- Will it go into the official xine CVS somewhere, or is it something
&lt;br&gt;&amp;gt; that I should make available elsewhere as a 3rd party plugin?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Another question: when I test my plugin now, I have to enable the
&lt;br&gt;&amp;gt; plugin with the &amp;quot;--post&amp;quot; command-line option. Is there a way to make
&lt;br&gt;&amp;gt; the engine load it automatically without this option?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; ~Morten :-)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -------------------------------------------------------------------------
&lt;br&gt;&amp;gt; This SF.net email is sponsored by DB2 Express
&lt;br&gt;&amp;gt; Download DB2 Express C - the FREE version of DB2 express and take
&lt;br&gt;&amp;gt; control of your XML. No limits. Just data. Click to get it now.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://sourceforge.net/powerbar/db2/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/powerbar/db2/&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; xine-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26380872&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;AL13N is my name and head-biting is my game.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26380872&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Where-should-the-code-for-my-new-post-plugin-code-go-%28and-another-plugin-question%29--tp11675555p26380872.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26361275</id>
	<title>Re: New demuxer/decoder for SBC encoded stream, sound is breadking</title>
	<published>2009-11-15T09:32:41Z</published>
	<updated>2009-11-15T09:32:41Z</updated>
	<author>
		<name>James Courtier-Dutton</name>
	</author>
	<content type="html">Hossain Reja wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; James Courtier-Dutton wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Hossain Reja wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm developing a demumxer/decoder in xine framework for SBC encoded audio
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; stream. To make it simple for now, in the demuxer reading the data from
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; input plugin I'm developing a demuxer/decoder in xine ramework for SBC
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; encoded audio stream. To make it simple for now, in the demuxer reading
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; data from input plugin (fifo in this case) and sending it to decoder as
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 8K
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; chunks. The decoder decode the data and send it to audio in audio buffer
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 8K
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; at a time. It palys the audio, but I hear there is gap between audio
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; frames. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I did the following experiments:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 1. I captured the decoded data at decoder after decoding and stored it in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; file with WAVE header, and played that with aplay. It plays perfect,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; meaning
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the decoding was right. I did the same this before it is sent to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; audio_ouput
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and it plays perfect.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2. I measured the time interval at which demuxer (send_chunk)is being
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; called
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and I observed that it's being called at around 400ms-500ms (while
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; sending
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 8K chunks).Observe the same amount of time interval for decoder
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; (decode_data
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; function).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm new to xine and any help will be highly appreciated.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Please let me know if any other information is required.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Please post a patch so we can see what is going wrong.
&lt;br&gt;&amp;gt;&amp;gt; My guess is that if you instead send 2k at a time from the demuxer and
&lt;br&gt;&amp;gt;&amp;gt; then 2k from the decoder, it might work better.
&lt;br&gt;&amp;gt;&amp;gt; I.e. Use smaller chunks.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Kind Regards
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; James
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 14.Nov.2009
&lt;br&gt;&amp;gt;&amp;gt; ==========
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hello James,
&lt;br&gt;&amp;gt;&amp;gt; Thanks for your response. 
&lt;br&gt;&amp;gt;&amp;gt; I tried with small chunk sizes (&amp;lt;=2K), but I hear that sound is breaking
&lt;br&gt;&amp;gt;&amp;gt; in shorter interval than that of 8K chunk size. 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I collected data at following conditions and observed that there is a
&lt;br&gt;&amp;gt;&amp;gt; delay in calling execution time in processing of data: Please note the
&lt;br&gt;&amp;gt;&amp;gt; following:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 1)	demux_xxx_send_chunk just reads the data from input of size 8K plug-in
&lt;br&gt;&amp;gt;&amp;gt; (fifo) in local buffer, does not send it to decoder. Time measured to
&lt;br&gt;&amp;gt;&amp;gt; execute demux_xxx_send_chunk is just 40-50us (micro seconds). I tried
&lt;br&gt;&amp;gt;&amp;gt; lower chunks too and time is around same.
&lt;br&gt;&amp;gt;&amp;gt; 2)	demux_xxx_send_chunk reads the data from input of size 8K plug-in
&lt;br&gt;&amp;gt;&amp;gt; (fifo) in local buffer, sends it to decoder; decoder does not decode it
&lt;br&gt;&amp;gt;&amp;gt; and does not send to ao_loop for processing. Time measured to execute
&lt;br&gt;&amp;gt;&amp;gt; demux_xxx_send_chunk is just 40-50us. I tried lower chunks too and time is
&lt;br&gt;&amp;gt;&amp;gt; around same.
&lt;br&gt;&amp;gt;&amp;gt; 3)	demux_xxx_send_chunk reads the data from input of size 8K plug-in
&lt;br&gt;&amp;gt;&amp;gt; (fifo) in local buffer, sends it to decoder; decoder decodes it but does
&lt;br&gt;&amp;gt;&amp;gt; not send to ao_loop for processing. Time measured to execute
&lt;br&gt;&amp;gt;&amp;gt; demux_xxx_send_chunk is just 3000us. I tried lower chunks too and time is
&lt;br&gt;&amp;gt;&amp;gt; around same.
&lt;br&gt;&amp;gt;&amp;gt; 4)	Now when decoder sends the decoded PCM data to ao_loop, the time
&lt;br&gt;&amp;gt;&amp;gt; measured to execute demux_xxx_send_chunk is whopping 420000us. For smaller
&lt;br&gt;&amp;gt;&amp;gt; size lets say 1K it is around 200000us.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Please also note that the vpts at decoder is set to 0 before sending it to
&lt;br&gt;&amp;gt;&amp;gt; ao_loop. I tried other calculations, but the effect is same as of vpts=0;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Unfortunately, I cannot upload the patch.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Let me know if you need any other info.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks in advance for your comments.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Best Regards,
&lt;br&gt;&amp;gt;&amp;gt; Hossain
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;/div&gt;Unfortunately, without a patch to look at, I cannot help you further.
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26361275&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/New-demuxer-decoder-for-SBC-encoded-stream%2C-sound-is-breadking-tp26304287p26361275.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26350368</id>
	<title>Re: New demuxer/decoder for SBC encoded stream, sound is breadking</title>
	<published>2009-11-14T06:13:46Z</published>
	<updated>2009-11-14T06:13:46Z</updated>
	<author>
		<name>Hossain Reja</name>
	</author>
	<content type="html">&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;James Courtier-Dutton wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hossain Reja wrote:
&lt;br&gt;&amp;gt; I'm developing a demumxer/decoder in xine framework for SBC encoded audio
&lt;br&gt;&amp;gt; stream. To make it simple for now, in the demuxer reading the data from
&lt;br&gt;&amp;gt; input plugin I'm developing a demuxer/decoder in xine ramework for SBC
&lt;br&gt;&amp;gt; encoded audio stream. To make it simple for now, in the demuxer reading the
&lt;br&gt;&amp;gt; data from input plugin (fifo in this case) and sending it to decoder as 8K
&lt;br&gt;&amp;gt; chunks. The decoder decode the data and send it to audio in audio buffer 8K
&lt;br&gt;&amp;gt; at a time. It palys the audio, but I hear there is gap between audio frames. 
&lt;br&gt;&amp;gt; I did the following experiments:
&lt;br&gt;&amp;gt; 1. I captured the decoded data at decoder after decoding and stored it in a
&lt;br&gt;&amp;gt; file with WAVE header, and played that with aplay. It plays perfect, meaning
&lt;br&gt;&amp;gt; the decoding was right. I did the same this before it is sent to audio_ouput
&lt;br&gt;&amp;gt; and it plays perfect.
&lt;br&gt;&amp;gt; 2. I measured the time interval at which demuxer (send_chunk)is being called
&lt;br&gt;&amp;gt; and I observed that it's being called at around 400ms-500ms (while sending
&lt;br&gt;&amp;gt; 8K chunks).Observe the same amount of time interval for decoder (decode_data
&lt;br&gt;&amp;gt; function).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm new to xine and any help will be highly appreciated.
&lt;br&gt;&amp;gt; Please let me know if any other information is required.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;Please post a patch so we can see what is going wrong.
&lt;br&gt;My guess is that if you instead send 2k at a time from the demuxer and
&lt;br&gt;then 2k from the decoder, it might work better.
&lt;br&gt;I.e. Use smaller chunks.
&lt;br&gt;&lt;br&gt;Kind Regards
&lt;br&gt;&lt;br&gt;James
&lt;br&gt;&lt;br&gt;14.Nov.2009
&lt;br&gt;==========
&lt;br&gt;&lt;br&gt;Hello James,
&lt;br&gt;Thanks for your response. 
&lt;br&gt;I tried with small chunk sizes (&amp;lt;=2K), but I hear that sound is breaking in shorter interval than that of 8K chunk size. 
&lt;br&gt;&lt;br&gt;I collected data at following conditions and observed that there is a delay in calling execution time in processing of data: Please note the following:
&lt;br&gt;&lt;br&gt;1)	demux_xxx_send_chunk just reads the data from input of size 8K plug-in (fifo) in local buffer, does not send it to decoder. Time measured to execute demux_xxx_send_chunk is just 40-50us (micro seconds). I tried lower chunks too and time is around same.
&lt;br&gt;2)	demux_xxx_send_chunk reads the data from input of size 8K plug-in (fifo) in local buffer, sends it to decoder; decoder does not decode it and does not send to ao_loop for processing. Time measured to execute demux_xxx_send_chunk is just 40-50us. I tried lower chunks too and time is around same.
&lt;br&gt;3)	demux_xxx_send_chunk reads the data from input of size 8K plug-in (fifo) in local buffer, sends it to decoder; decoder decodes it but does not send to ao_loop for processing. Time measured to execute demux_xxx_send_chunk is just 3000us. I tried lower chunks too and time is around same.
&lt;br&gt;4)	Now when decoder sends the decoded PCM data to ao_loop, the time measured to execute demux_xxx_send_chunk is whopping 420000us. For smaller size lets say 1K it is around 200000us.
&lt;br&gt;&lt;br&gt;Please also note that the vpts at decoder is set to 0 before sending it to ao_loop. I tried other calculations, but the effect is same as of vpts=0;
&lt;br&gt;&lt;br&gt;Unfortunately, I cannot upload the patch.
&lt;br&gt;&lt;br&gt;Let me know if you need any other info.
&lt;br&gt;&lt;br&gt;Thanks in advance for your comments.
&lt;br&gt;&lt;br&gt;Best Regards,
&lt;br&gt;Hossain
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;xine-devel@lists.sourceforge.net
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/New-demuxer-decoder-for-SBC-encoded-stream%2C-sound-is-breadking-tp26304287p26350368.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26308915</id>
	<title>Re: New demuxer/decoder for SBC encoded stream, sound is breadking</title>
	<published>2009-11-11T13:23:15Z</published>
	<updated>2009-11-11T13:23:15Z</updated>
	<author>
		<name>James Courtier-Dutton</name>
	</author>
	<content type="html">Hossain Reja wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'm developing a demumxer/decoder in xine framework for SBC encoded audio
&lt;br&gt;&amp;gt; stream. To make it simple for now, in the demuxer reading the data from
&lt;br&gt;&amp;gt; input plugin I'm developing a demuxer/decoder in xine ramework for SBC
&lt;br&gt;&amp;gt; encoded audio stream. To make it simple for now, in the demuxer reading the
&lt;br&gt;&amp;gt; data from input plugin (fifo in this case) and sending it to decoder as 8K
&lt;br&gt;&amp;gt; chunks. The decoder decode the data and send it to audio in audio buffer 8K
&lt;br&gt;&amp;gt; at a time. It palys the audio, but I hear there is gap between audio frames. 
&lt;br&gt;&amp;gt; I did the following experiments:
&lt;br&gt;&amp;gt; 1. I captured the decoded data at decoder after decoding and stored it in a
&lt;br&gt;&amp;gt; file with WAVE header, and played that with aplay. It plays perfect, meaning
&lt;br&gt;&amp;gt; the decoding was right. I did the same this before it is sent to audio_ouput
&lt;br&gt;&amp;gt; and it plays perfect.
&lt;br&gt;&amp;gt; 2. I measured the time interval at which demuxer (send_chunk)is being called
&lt;br&gt;&amp;gt; and I observed that it's being called at around 400ms-500ms (while sending
&lt;br&gt;&amp;gt; 8K chunks).Observe the same amount of time interval for decoder (decode_data
&lt;br&gt;&amp;gt; function).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm new to xine and any help will be highly appreciated.
&lt;br&gt;&amp;gt; Please let me know if any other information is required.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;Please post a patch so we can see what is going wrong.
&lt;br&gt;My guess is that if you instead send 2k at a time from the demuxer and
&lt;br&gt;then 2k from the decoder, it might work better.
&lt;br&gt;I.e. Use smaller chunks.
&lt;br&gt;&lt;br&gt;Kind Regards
&lt;br&gt;&lt;br&gt;James
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26308915&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/New-demuxer-decoder-for-SBC-encoded-stream%2C-sound-is-breadking-tp26304287p26308915.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26304287</id>
	<title>New demuxer/decoder for SBC encoded stream, sound is breadking</title>
	<published>2009-11-11T08:33:31Z</published>
	<updated>2009-11-11T08:33:31Z</updated>
	<author>
		<name>Hossain Reja</name>
	</author>
	<content type="html">I'm developing a demumxer/decoder in xine framework for SBC encoded audio stream. To make it simple for now, in the demuxer reading the data from input plugin I'm developing a demuxer/decoder in xine ramework for SBC encoded audio stream. To make it simple for now, in the demuxer reading the data from input plugin (fifo in this case) and sending it to decoder as 8K chunks. The decoder decode the data and send it to audio in audio buffer 8K at a time. It palys the audio, but I hear there is gap between audio frames. 
&lt;br&gt;I did the following experiments:
&lt;br&gt;1. I captured the decoded data at decoder after decoding and stored it in a file with WAVE header, and played that with aplay. It plays perfect, meaning the decoding was right. I did the same this before it is sent to audio_ouput and it plays perfect.
&lt;br&gt;2. I measured the time interval at which demuxer (send_chunk)is being called and I observed that it's being called at around 400ms-500ms (while sending 8K chunks).Observe the same amount of time interval for decoder (decode_data function).
&lt;br&gt;&lt;br&gt;I'm new to xine and any help will be highly appreciated.
&lt;br&gt;Please let me know if any other information is required.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/New-demuxer-decoder-for-SBC-encoded-stream%2C-sound-is-breadking-tp26304287p26304287.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26416694</id>
	<title>Forbidden to access parts of Bugzilla</title>
	<published>2009-11-08T06:20:53Z</published>
	<updated>2009-11-08T06:20:53Z</updated>
	<author>
		<name>Matt Kraai</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;When I try to access some parts of Bugzilla at
&lt;br&gt;&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://bugs.xine-project.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.xine-project.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;(e.g., when I click on the My Bugs link on that page), I receive a 403
&lt;br&gt;Forbidden error:
&lt;br&gt;&lt;br&gt;&amp;gt; Forbidden
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You don't have permission to access /buglist.cgi on this server.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Server at bugs.xine-project.org Port 80
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Matt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://ftbfs.org/kraai&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ftbfs.org/kraai&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26416694&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Forbidden-to-access-parts-of-Bugzilla-tp26416694p26416694.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26195941</id>
	<title>Re: Unable to play .PNG file using xine</title>
	<published>2009-11-04T05:04:15Z</published>
	<updated>2009-11-04T05:04:15Z</updated>
	<author>
		<name>Debsu</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;In FFMpeg Configuration, there is no such option like gdkpixbuf. 
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Roger Scott-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am using Xine Library version 1.1.16.2 in Fedora. I also installed FFMpeg.
&lt;br&gt;&amp;gt; Now whenever I want to play a .PNG file Xine gives me the error &amp;quot;No Demuxer
&lt;br&gt;&amp;gt; Plaugin found&amp;quot;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; How can I play .png or .gif file in Xine?
&lt;br&gt;&lt;br&gt;I needed the gdk-pixbuf stuff installed and then it worked. &amp;nbsp;Not sure how a different ffmpeg would change that (perhaps it disable/overrides gdk-pixbuf). &amp;nbsp;I suspect it's a configure thing which isn't automatically detecting. &amp;nbsp;Try tweaking the --enable... options (eg --enable-gdkpixbuf). &amp;nbsp;Also make sure you're getting the image demuxer installed as part of the configure.
&lt;br&gt;&lt;br&gt;Roger.
&lt;br&gt;&lt;br&gt;&amp;nbsp;		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;_________________________________________________________________
&lt;br&gt;Looking for a date? View photos of singles in your area!
&lt;br&gt;&lt;a href=&quot;http://clk.atdmt.com/NMN/go/150855801/direct/01/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://clk.atdmt.com/NMN/go/150855801/direct/01/&lt;/a&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;xine-devel@lists.sourceforge.net
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class=&quot;signature&quot;&gt;Regards,
&lt;br&gt;Debsu&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Unable-to-play-.PNG-file-using-xine-tp26160200p26195941.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26193283</id>
	<title>Re: Unable to play .PNG file using xine</title>
	<published>2009-11-04T01:35:23Z</published>
	<updated>2009-11-04T01:35:23Z</updated>
	<author>
		<name>Debsu</name>
	</author>
	<content type="html">Hi Paul,
&lt;br&gt;&lt;br&gt;Doesn't matter, xine lib is able to play image as well as movie. I tested in in FC6.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Paul Menzel-3 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Dear Debsu,
&lt;br&gt;&lt;br&gt;&lt;br&gt;Am Dienstag, den 03.11.2009, 07:32 -0800 schrieb Debsu:
&lt;br&gt;&amp;gt; I am using Xine Library version 1.1.16.2 in Fedora. I also installed FFMpeg.
&lt;br&gt;&amp;gt; Now whenever I want to play a .PNG file Xine gives me the error &amp;quot;No Demuxer
&lt;br&gt;&amp;gt; Plaugin found&amp;quot;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; How can I play .png or .gif file in Xine?
&lt;br&gt;&lt;br&gt;As far as I know PNG and GIF are image formats and not movie formats. So
&lt;br&gt;you should use an image viewer or convert them to a movie format.
&lt;br&gt;&lt;br&gt;&amp;gt; -----
&lt;br&gt;&lt;br&gt;If you want to mark your signature this way, you need to use just two
&lt;br&gt;hyphens, so that the mail program removes it automatically.
&lt;br&gt;&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Debsu
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Paul
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;xine-devel@lists.sourceforge.net
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class=&quot;signature&quot;&gt;Regards,
&lt;br&gt;Debsu&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Unable-to-play-.PNG-file-using-xine-tp26160200p26193283.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26186842</id>
	<title>Re: Unable to play .PNG file using xine</title>
	<published>2009-11-03T13:22:11Z</published>
	<updated>2009-11-03T13:22:11Z</updated>
	<author>
		<name>Roger Scott-2</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
&amp;gt; Hi,&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; I am using Xine Library version 1.1.16.2 in Fedora. I also installed FFMpeg.&lt;br&gt;&amp;gt; Now whenever I want to play a .PNG file Xine gives me the error &quot;No Demuxer&lt;br&gt;&amp;gt; Plaugin found&quot;.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; How can I play .png or .gif file in Xine?&lt;br&gt;&lt;br&gt;I needed the gdk-pixbuf stuff installed and then it worked.&amp;nbsp; Not sure how a different ffmpeg would change that (perhaps it disable/overrides gdk-pixbuf).&amp;nbsp; I suspect it's a configure thing which isn't automatically detecting.&amp;nbsp; Try tweaking the --enable... options (eg --enable-gdkpixbuf).&amp;nbsp; Also make sure you're getting the image demuxer installed as part of the configure.&lt;br&gt;&lt;br&gt;Roger.&lt;br&gt;&lt;br&gt; 		 	   		  &lt;br /&gt;&lt;hr /&gt;View photos of singles in your area! &lt;a href='http://clk.atdmt.com/NMN/go/150855801/direct/01/' target='_new' rel=&quot;nofollow&quot;&gt;Looking for a date?&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26186842&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Unable-to-play-.PNG-file-using-xine-tp26160200p26186842.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26183473</id>
	<title>Re: Unable to play .PNG file using xine</title>
	<published>2009-11-03T09:36:22Z</published>
	<updated>2009-11-03T09:36:22Z</updated>
	<author>
		<name>Paul Menzel-3</name>
	</author>
	<content type="html">Dear Debsu,
&lt;br&gt;&lt;br&gt;&lt;br&gt;Am Dienstag, den 03.11.2009, 07:32 -0800 schrieb Debsu:
&lt;br&gt;&amp;gt; I am using Xine Library version 1.1.16.2 in Fedora. I also installed FFMpeg.
&lt;br&gt;&amp;gt; Now whenever I want to play a .PNG file Xine gives me the error &amp;quot;No Demuxer
&lt;br&gt;&amp;gt; Plaugin found&amp;quot;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; How can I play .png or .gif file in Xine?
&lt;br&gt;&lt;br&gt;As far as I know PNG and GIF are image formats and not movie formats. So
&lt;br&gt;you should use an image viewer or convert them to a movie format.
&lt;br&gt;&lt;br&gt;&amp;gt; -----
&lt;br&gt;&lt;br&gt;If you want to mark your signature this way, you need to use just two
&lt;br&gt;hyphens, so that the mail program removes it automatically.
&lt;br&gt;&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Debsu
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Paul
&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26183473&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (205 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26183473/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Unable-to-play-.PNG-file-using-xine-tp26160200p26183473.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26160201</id>
	<title>Unable to play .PNG file using xine</title>
	<published>2009-11-03T07:35:27Z</published>
	<updated>2009-11-03T07:35:27Z</updated>
	<author>
		<name>Debsu</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I am using Xine Library version 1.1.16.2 in Fedora. I also installed FFMpeg. Now whenever I want to play a .PNG file Xine gives me the error &amp;quot;No Demuxer Plaugin found&amp;quot;.
&lt;br&gt;&lt;br&gt;How can I play .png or .gif file in Xine?
&lt;br&gt;&lt;div class=&quot;signature&quot;&gt;Regards,
&lt;br&gt;Debsu&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Unable-to-play-.PNG-file-using-xine-tp26160201p26160201.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26160200</id>
	<title>Unable to play .PNG file using xine</title>
	<published>2009-11-03T07:32:29Z</published>
	<updated>2009-11-03T07:32:29Z</updated>
	<author>
		<name>Debsu</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I am using Xine Library version 1.1.16.2 in Fedora. I also installed FFMpeg. Now whenever I want to play a .PNG file Xine gives me the error &amp;quot;No Demuxer Plaugin found&amp;quot;.
&lt;br&gt;&lt;br&gt;How can I play .png or .gif file in Xine?
&lt;br&gt;&lt;div class=&quot;signature&quot;&gt;Regards,
&lt;br&gt;Debsu&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Unable-to-play-.PNG-file-using-xine-tp26160200p26160200.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26181297</id>
	<title>Re: [PATCH] Fix buffer overflow in demux_mpeg_block.c</title>
	<published>2009-11-03T07:22:19Z</published>
	<updated>2009-11-03T07:22:19Z</updated>
	<author>
		<name>Petri Hintukainen-3</name>
	</author>
	<content type="html">&amp;gt; I'd also remove this-&amp;gt;scratch unless there is some weird reason to keep
&lt;br&gt;&amp;gt; it.
&lt;br&gt;&lt;br&gt;Attached (untested) patch. 
&lt;br&gt;&lt;br&gt;&lt;br&gt;- Petri
&lt;br&gt;&lt;br&gt;&lt;br /&gt;&lt;tt&gt;[9835-demux_mpeg_block.c-buffer_overflow_v2.diff]&lt;/tt&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;# HG changeset patch
&lt;br&gt;# User Petri Hintukainen &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26181297&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;phintuka@...&lt;/a&gt;&amp;gt;
&lt;br&gt;# Date 1257261327 -7200
&lt;br&gt;# Node ID 761f7a5a77d0e129f815b7fe3f81f8072404c7a0
&lt;br&gt;# Parent &amp;nbsp;898baed1012ada88a6b8522f1f3d95f04815f556
&lt;br&gt;Fixed buffer overflow.
&lt;br&gt;Removed scratch buffer from demux_mpeg_block_s.
&lt;br&gt;&lt;br&gt;diff -r 898baed1012a -r 761f7a5a77d0 src/demuxers/demux_mpeg_block.c
&lt;br&gt;--- a/src/demuxers/demux_mpeg_block.c	Sun Oct 25 14:08:00 2009 +0000
&lt;br&gt;+++ b/src/demuxers/demux_mpeg_block.c	Tue Nov 03 17:15:27 2009 +0200
&lt;br&gt;@@ -69,9 +69,6 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;char &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cur_mrl[256];
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp;uint8_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*scratch;
&lt;br&gt;- &amp;nbsp;void &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *scratch_base;
&lt;br&gt;-
&lt;br&gt;&amp;nbsp; &amp;nbsp;int64_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nav_last_end_pts;
&lt;br&gt;&amp;nbsp; &amp;nbsp;int64_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nav_last_start_pts;
&lt;br&gt;&amp;nbsp; &amp;nbsp;int64_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; last_pts[2];
&lt;br&gt;@@ -1176,7 +1173,6 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;demux_mpeg_block_t *this = (demux_mpeg_block_t *) this_gen;
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;- &amp;nbsp;free (this-&amp;gt;scratch_base);
&lt;br&gt;&amp;nbsp; &amp;nbsp;free (this);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -1189,18 +1185,19 @@
&lt;br&gt;&amp;nbsp;static int demux_mpeg_detect_blocksize(demux_mpeg_block_t *this, 
&lt;br&gt;&amp;nbsp;				 &amp;nbsp; &amp;nbsp; &amp;nbsp; input_plugin_t *input)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;+ &amp;nbsp;uint8_t scratch[4];
&lt;br&gt;&amp;nbsp; &amp;nbsp;input-&amp;gt;seek(input, 2048, SEEK_SET);
&lt;br&gt;- &amp;nbsp;if (input-&amp;gt;read(input, this-&amp;gt;scratch, 4) != 4)
&lt;br&gt;+ &amp;nbsp;if (input-&amp;gt;read(input, scratch, 4) != 4)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return 0;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp;if (this-&amp;gt;scratch[0] || this-&amp;gt;scratch[1]
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;|| (this-&amp;gt;scratch[2] != 0x01) || (this-&amp;gt;scratch[3] != 0xba)) {
&lt;br&gt;+ &amp;nbsp;if (scratch[0] || scratch[1]
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;|| (scratch[2] != 0x01) || (scratch[3] != 0xba)) {
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;input-&amp;gt;seek(input, 2324, SEEK_SET);
&lt;br&gt;- &amp;nbsp; &amp;nbsp;if (input-&amp;gt;read(input, this-&amp;gt;scratch, 4) != 4)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;if (input-&amp;gt;read(input, scratch, 4) != 4)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 0;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;if (this-&amp;gt;scratch[0] || this-&amp;gt;scratch[1] 
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|| (this-&amp;gt;scratch[2] != 0x01) || (this-&amp;gt;scratch[3] != 0xba)) 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;if (scratch[0] || scratch[1] 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|| (scratch[2] != 0x01) || (scratch[3] != 0xba)) 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return 2324;
&lt;br&gt;@@ -1385,7 +1382,6 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;this-&amp;gt;demux_plugin.get_optional_data = demux_mpeg_block_get_optional_data;
&lt;br&gt;&amp;nbsp; &amp;nbsp;this-&amp;gt;demux_plugin.demux_class &amp;nbsp; &amp;nbsp; &amp;nbsp; = class_gen;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp;this-&amp;gt;scratch &amp;nbsp; &amp;nbsp;= xine_xmalloc_aligned (512, 4096, &amp;this-&amp;gt;scratch_base);
&lt;br&gt;&amp;nbsp; &amp;nbsp;this-&amp;gt;status &amp;nbsp; &amp;nbsp; = DEMUX_FINISHED;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;lprintf (&amp;quot;open_plugin:detection_method=%d\n&amp;quot;,
&lt;br&gt;@@ -1397,13 +1393,14 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* use demux_mpeg for non-block devices */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (!(input-&amp;gt;get_capabilities(input) &amp; INPUT_CAP_BLOCK)) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;free (this-&amp;gt;scratch_base);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free (this);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return NULL;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (((input-&amp;gt;get_capabilities(input) &amp; INPUT_CAP_SEEKABLE) != 0) ) {
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;uint8_t scratch[5] = {0xff, 0xff, 0xff, 0xff, 0xff}; /* result of input-&amp;gt;read() won't matter */
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this-&amp;gt;blocksize = input-&amp;gt;get_blocksize(input);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lprintf(&amp;quot;open_plugin:blocksize=%d\n&amp;quot;,this-&amp;gt;blocksize);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -1411,29 +1408,25 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this-&amp;gt;blocksize = demux_mpeg_detect_blocksize( this, input );
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (!this-&amp;gt;blocksize) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free (this-&amp;gt;scratch_base);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free (this);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return NULL;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;input-&amp;gt;seek(input, 0, SEEK_SET);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;memset (this-&amp;gt;scratch, 255, 5); /* result of input-&amp;gt;read() won't matter */
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;if (input-&amp;gt;read(input, this-&amp;gt;scratch, this-&amp;gt;blocksize)) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;if (input-&amp;gt;read(input, scratch, 5)) {
&lt;br&gt;&amp;nbsp;	lprintf(&amp;quot;open_plugin:read worked\n&amp;quot;);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (this-&amp;gt;scratch[0] || this-&amp;gt;scratch[1]
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|| (this-&amp;gt;scratch[2] != 0x01) || (this-&amp;gt;scratch[3] != 0xba)) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (scratch[0] || scratch[1]
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|| (scratch[2] != 0x01) || (scratch[3] != 0xba)) {
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;lprintf(&amp;quot;open_plugin:scratch failed\n&amp;quot;);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free (this-&amp;gt;scratch_base);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free (this);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return NULL;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* if it's a file then make sure it's mpeg-2 */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( !input-&amp;gt;get_blocksize(input)
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;&amp; ((this-&amp;gt;scratch[4]&amp;gt;&amp;gt;4) != 4) ) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free (this-&amp;gt;scratch_base);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;&amp; ((scratch[4]&amp;gt;&amp;gt;4) != 4) ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free (this);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return NULL;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;@@ -1447,7 +1440,6 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;- &amp;nbsp; &amp;nbsp;free (this-&amp;gt;scratch_base);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;free (this);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return NULL;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;@@ -1468,7 +1460,6 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ending = strrchr(mrl, '.');
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (!ending) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free (this-&amp;gt;scratch_base);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free (this);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return NULL;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;@@ -1478,7 +1469,6 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this-&amp;gt;blocksize = 2048;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;demux_mpeg_block_accept_input(this, input);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free (this-&amp;gt;scratch_base);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free (this);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return NULL;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;@@ -1496,7 +1486,6 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this-&amp;gt;blocksize = demux_mpeg_detect_blocksize( this, input );
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (!this-&amp;gt;blocksize) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;free (this-&amp;gt;scratch_base);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free (this);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return NULL;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;@@ -1506,7 +1495,6 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;break;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;default:
&lt;br&gt;- &amp;nbsp; &amp;nbsp;free (this-&amp;gt;scratch_base);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;free (this);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return NULL;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26181297&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--Fix-buffer-overflow-in-demux_mpeg_block.c-tp26181347p26181297.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26181347</id>
	<title>[PATCH] Fix buffer overflow in demux_mpeg_block.c</title>
	<published>2009-11-03T07:06:00Z</published>
	<updated>2009-11-03T07:06:00Z</updated>
	<author>
		<name>Petri Hintukainen-3</name>
	</author>
	<content type="html">Patch attached.
&lt;br&gt;&lt;br&gt;I'd also remove this-&amp;gt;scratch unless there is some weird reason to keep
&lt;br&gt;it. Local buffers in demux_mpeg_detect_blocksize() [4 bytes] and
&lt;br&gt;open_plugin [4096 bytes] should do the same ... ?
&lt;br&gt;&lt;br&gt;&lt;br&gt;- Petri
&lt;br&gt;&lt;br /&gt;&lt;tt&gt;[9835-demux_mpeg_block.c-buffer_overflow.diff]&lt;/tt&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;# HG changeset patch
&lt;br&gt;# User Petri Hintukainen &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26181347&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;phintuka@...&lt;/a&gt;&amp;gt;
&lt;br&gt;# Date 1257260200 -7200
&lt;br&gt;# Node ID 61fcc6e682a4db817461e3c825589a2c41ec71dd
&lt;br&gt;# Parent &amp;nbsp;898baed1012ada88a6b8522f1f3d95f04815f556
&lt;br&gt;Fixed buffer overflow:
&lt;br&gt;input-&amp;gt;read(input, this-&amp;gt;scratch, this-&amp;gt;blocksize) overflows if input plugin block size is larger than 4096.
&lt;br&gt;&lt;br&gt;diff -r 898baed1012a -r 61fcc6e682a4 src/demuxers/demux_mpeg_block.c
&lt;br&gt;--- a/src/demuxers/demux_mpeg_block.c	Sun Oct 25 14:08:00 2009 +0000
&lt;br&gt;+++ b/src/demuxers/demux_mpeg_block.c	Tue Nov 03 16:56:40 2009 +0200
&lt;br&gt;@@ -43,6 +43,7 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#define NUM_PREVIEW_BUFFERS &amp;nbsp; 250
&lt;br&gt;&amp;nbsp;#define DISC_TRESHOLD &amp;nbsp; &amp;nbsp; &amp;nbsp; 90000
&lt;br&gt;+#define MAX_BLOCK_SIZE &amp;nbsp; &amp;nbsp; &amp;nbsp; 4096
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#define WRAP_THRESHOLD &amp;nbsp; &amp;nbsp; 120000 
&lt;br&gt;&amp;nbsp;#define PTS_AUDIO 0
&lt;br&gt;@@ -1385,7 +1386,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;this-&amp;gt;demux_plugin.get_optional_data = demux_mpeg_block_get_optional_data;
&lt;br&gt;&amp;nbsp; &amp;nbsp;this-&amp;gt;demux_plugin.demux_class &amp;nbsp; &amp;nbsp; &amp;nbsp; = class_gen;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp;this-&amp;gt;scratch &amp;nbsp; &amp;nbsp;= xine_xmalloc_aligned (512, 4096, &amp;this-&amp;gt;scratch_base);
&lt;br&gt;+ &amp;nbsp;this-&amp;gt;scratch &amp;nbsp; &amp;nbsp;= xine_xmalloc_aligned (512, MAX_BLOCK_SIZE, &amp;this-&amp;gt;scratch_base);
&lt;br&gt;&amp;nbsp; &amp;nbsp;this-&amp;gt;status &amp;nbsp; &amp;nbsp; = DEMUX_FINISHED;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;lprintf (&amp;quot;open_plugin:detection_method=%d\n&amp;quot;,
&lt;br&gt;@@ -1410,7 +1411,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (!this-&amp;gt;blocksize)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this-&amp;gt;blocksize = demux_mpeg_detect_blocksize( this, input );
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;if (!this-&amp;gt;blocksize) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;if (!this-&amp;gt;blocksize || this-&amp;gt;blocksize &amp;gt; MAX_BLOCK_SIZE) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free (this-&amp;gt;scratch_base);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free (this);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return NULL;
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26181347&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--Fix-buffer-overflow-in-demux_mpeg_block.c-tp26181347p26181347.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26092976</id>
	<title>Re: Application crashes during playing MPEG file using xine</title>
	<published>2009-10-28T04:21:49Z</published>
	<updated>2009-10-28T04:21:49Z</updated>
	<author>
		<name>Barry Scott-2</name>
	</author>
	<content type="html">Debsu wrote:
&lt;br&gt;&amp;gt; Hi Darren,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks a lot for pointing out the problem. If you can tell me the way to
&lt;br&gt;&amp;gt; resolve this, that will be very much appreciable.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;Take the problem to the &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26092976&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xorg@...&lt;/a&gt; and ask there.
&lt;br&gt;Something like this is already being discussed at the moment.
&lt;br&gt;&lt;br&gt;Barry
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Deb
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Darren Salt wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; I demand that Debsu may or may not have written...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; My application crashes while playing video file using Xine library. It
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; gives the following error after crash:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; MY_APP: xcbio.c:176 : process responses: Assertion (...) failed.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; That's an X problem.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -- 
&lt;br&gt;&amp;gt;&amp;gt; | Darren Salt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| linux at youmustbejoking | nr. Ashington, |
&lt;br&gt;&amp;gt;&amp;gt; Doon
&lt;br&gt;&amp;gt;&amp;gt; | using Debian GNU/Linux | or ds &amp;nbsp; &amp;nbsp;,demon,co,uk &amp;nbsp; &amp;nbsp;| Northumberland |
&lt;br&gt;&amp;gt;&amp;gt; Army
&lt;br&gt;&amp;gt;&amp;gt; | + Use more efficient products. Use less. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BE MORE ENERGY
&lt;br&gt;&amp;gt;&amp;gt; EFFICIENT.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Help! I'm trapped inside an Amdahl 580!
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;&amp;gt;&amp;gt; is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;&amp;gt;&amp;gt; developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;&amp;gt;&amp;gt; ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; xine-devel mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26092976&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Debsu
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26092976&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Application-crashes-during-playing-MPEG-file-using-xine-tp26063480p26092976.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26072058</id>
	<title>Re: Application crashes during playing MPEG file using xine</title>
	<published>2009-10-26T21:37:15Z</published>
	<updated>2009-10-26T21:37:15Z</updated>
	<author>
		<name>Debsu</name>
	</author>
	<content type="html">Hi Darren,
&lt;br&gt;&lt;br&gt;Thanks a lot for pointing out the problem. If you can tell me the way to resolve this, that will be very much appreciable.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Deb
&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Darren Salt wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;I demand that Debsu may or may not have written...
&lt;br&gt;&lt;br&gt;&amp;gt; My application crashes while playing video file using Xine library. It
&lt;br&gt;&amp;gt; gives the following error after crash:
&lt;br&gt;&lt;br&gt;&amp;gt; MY_APP: xcbio.c:176 : process responses: Assertion (...) failed.
&lt;br&gt;&lt;br&gt;That's an X problem.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;| Darren Salt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| linux at youmustbejoking | nr. Ashington, | Doon
&lt;br&gt;| using Debian GNU/Linux | or ds &amp;nbsp; &amp;nbsp;,demon,co,uk &amp;nbsp; &amp;nbsp;| Northumberland | Army
&lt;br&gt;| + Use more efficient products. Use less. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BE MORE ENERGY EFFICIENT.
&lt;br&gt;&lt;br&gt;Help! I'm trapped inside an Amdahl 580!
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;xine-devel@lists.sourceforge.net
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class=&quot;signature&quot;&gt;Regards,
&lt;br&gt;Debsu&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Application-crashes-during-playing-MPEG-file-using-xine-tp26063480p26072058.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26064046</id>
	<title>Re: Application crashes during playing MPEG file using xine</title>
	<published>2009-10-26T10:32:40Z</published>
	<updated>2009-10-26T10:32:40Z</updated>
	<author>
		<name>Darren Salt</name>
	</author>
	<content type="html">I demand that Debsu may or may not have written...
&lt;br&gt;&lt;br&gt;&amp;gt; My application crashes while playing video file using Xine library. It
&lt;br&gt;&amp;gt; gives the following error after crash:
&lt;br&gt;&lt;br&gt;&amp;gt; MY_APP: xcbio.c:176 : process responses: Assertion (...) failed.
&lt;br&gt;&lt;br&gt;That's an X problem.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;| Darren Salt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| linux at youmustbejoking | nr. Ashington, | Doon
&lt;br&gt;| using Debian GNU/Linux | or ds &amp;nbsp; &amp;nbsp;,demon,co,uk &amp;nbsp; &amp;nbsp;| Northumberland | Army
&lt;br&gt;| + Use more efficient products. Use less. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BE MORE ENERGY EFFICIENT.
&lt;br&gt;&lt;br&gt;Help! I'm trapped inside an Amdahl 580!
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26064046&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Application-crashes-during-playing-MPEG-file-using-xine-tp26063480p26064046.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26063480</id>
	<title>Application crashes during playing MPEG file using xine</title>
	<published>2009-10-26T10:00:11Z</published>
	<updated>2009-10-26T10:00:11Z</updated>
	<author>
		<name>Debsu</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;My application crashes while playing video file using Xine library. It gives the following error after crash:
&lt;br&gt;MY_APP: xcbio.c:176 : process responses: Assertion (...) failed.
&lt;br&gt;&lt;br&gt;Can anyone tell me what should I do?
&lt;br&gt;&lt;br&gt;Thanks in advance.&lt;div class=&quot;signature&quot;&gt;Regards,
&lt;br&gt;Debsu&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Application-crashes-during-playing-MPEG-file-using-xine-tp26063480p26063480.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25876438</id>
	<title>XML Lexer bug fix</title>
	<published>2009-10-13T09:36:17Z</published>
	<updated>2009-10-13T09:36:17Z</updated>
	<author>
		<name>Bastien Nocera</name>
	</author>
	<content type="html">Heya,
&lt;br&gt;&lt;br&gt;Could somebody please review the patch at:
&lt;br&gt;&lt;a href=&quot;http://bugs.xine-project.org/show_bug.cgi?id=281&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.xine-project.org/show_bug.cgi?id=281&lt;/a&gt;&lt;br&gt;&lt;br&gt;I'd like to keep totem-pl-parser' code as close as possible to the
&lt;br&gt;upstream xine-lib code, and a Rhythmbox contributor pushed the above
&lt;br&gt;patch.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25876438&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/XML-Lexer-bug-fix-tp25876438p25876438.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25625053</id>
	<title>xine_play / xine_get_pos_length woes</title>
	<published>2009-09-26T05:05:45Z</published>
	<updated>2009-09-26T05:05:45Z</updated>
	<author>
		<name>Frank Enderle-3</name>
	</author>
	<content type="html">hi,
&lt;br&gt;&lt;br&gt;i'm currently developing an application for a project where i use lib-xine
&lt;br&gt;(which is really great btw). however, i encountered one strange behaviour.
&lt;br&gt;&lt;br&gt;background: i need to know the length of a stream actually before i play
&lt;br&gt;it to do some calculations. so if the streams provides a length i'd like to
&lt;br&gt;know it. everything works fine when i open the mrl for the first time and
&lt;br&gt;then ask using get_pos_length for the stream length. but when i open the
&lt;br&gt;stream for the second time (after closing it of course) i alwass get 0 as
&lt;br&gt;length and the correct length is not reported until i started playing the
&lt;br&gt;stream.
&lt;br&gt;&lt;br&gt;some pseudo code:
&lt;br&gt;&lt;br&gt;loop:
&lt;br&gt;&amp;nbsp; xine_open(&amp;quot;file.mp3&amp;quot;);
&lt;br&gt;&amp;nbsp; xine_get_pos_len(); &amp;lt;-- in the first loop returns correct information,
&lt;br&gt;afterwards it's 0
&lt;br&gt;&amp;nbsp; ... do some calculations with length
&lt;br&gt;&amp;nbsp; xine_play();
&lt;br&gt;&amp;nbsp; ... wait till finished playing
&lt;br&gt;&amp;nbsp; xine_close();
&lt;br&gt;&amp;nbsp; goto loop
&lt;br&gt;&lt;br&gt;i'm a little bit stuck here since i don't know how to get the length
&lt;br&gt;before starting to play. i'm going to cache the length for now, but i feel
&lt;br&gt;this is not the perfect way to go. so maybe someone know anything that
&lt;br&gt;helps; maybe it's even a bug - i don't know, but i'd like to ;)
&lt;br&gt;&lt;br&gt;thanks and regards,
&lt;br&gt;&lt;br&gt;frank
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25625053&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/xine_play---xine_get_pos_length-woes-tp25625053p25625053.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25596148</id>
	<title>Re: [xine-user] Blu-Ray patch not working</title>
	<published>2009-09-24T07:13:45Z</published>
	<updated>2009-09-24T07:13:45Z</updated>
	<author>
		<name>Petri Hintukainen-3</name>
	</author>
	<content type="html">Petri Hintukainen wrote:
&lt;br&gt;&amp;gt; Darren Salt wrote:
&lt;br&gt;&amp;gt; &amp;gt; I've extracted the patches and added them (with minor tweaks) to the 1.1
&lt;br&gt;&amp;gt; &amp;gt; patch queue.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm also adding VC-1 video support, but there are some problems in
&lt;br&gt;&amp;gt; ff_video_decoder.c. Opening ffmpeg VC-1 decoder fails and xine-lib
&lt;br&gt;&amp;gt; ffmpeg wrapper plugin segfaults quite soon after that.
&lt;br&gt;&lt;br&gt;There are two tricks to make VC1 decoding work:
&lt;br&gt;1) VC1 sequence and entry point headers must be present in
&lt;br&gt;context-&amp;gt;extradata. 
&lt;br&gt;2) video width and height must be known when opening decoder.
&lt;br&gt;&lt;br&gt;Some container formats store required extra data, but mpeg-ts does not.
&lt;br&gt;&lt;br&gt;&lt;br&gt;1) is fixed by scanning the stream for headers and discarding all data
&lt;br&gt;until proper headers are found.
&lt;br&gt;&lt;br&gt;2) is fixed by re-opening decoder with width and height information from
&lt;br&gt;first open.
&lt;br&gt;&lt;br&gt;Proposed patches are attached. Any comments ?
&lt;br&gt;&lt;br&gt;&lt;br&gt;- Petri
&lt;br&gt;&lt;br /&gt;&lt;tt&gt;[xine-lib-1.1.16.3-ffmpeg-vc1-extradata.diff]&lt;/tt&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;--- src/combined/ffmpeg/ff_video_decoder.c	2009-04-16 14:24:20.000000000 +0300
&lt;br&gt;+++ src/combined/ffmpeg/ff_video_decoder.c	2009-09-24 15:21:25.000000000 +0300
&lt;br&gt;@@ -1165,6 +1181,49 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+static int ff_vc1_find_header(ff_video_decoder_t *this, buf_element_t *buf)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;uint8_t *p = buf-&amp;gt;content;
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp;if (!p[0] &amp;&amp; !p[1] &amp;&amp; p[2] == 1 &amp;&amp; p[3] == 0x0f) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;int i;
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;this-&amp;gt;context-&amp;gt;extradata = calloc(1, buf-&amp;gt;size);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;this-&amp;gt;context-&amp;gt;extradata_size = 0;
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;for (i = 0; i &amp;lt; buf-&amp;gt;size &amp;&amp; i &amp;lt; 128; i++) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;if (!p[i] &amp;&amp; !p[i+1] &amp;&amp; p[i+2]) {
&lt;br&gt;+	lprintf(&amp;quot;00 00 01 %02x at %d\n&amp;quot;, p[i+3], i);
&lt;br&gt;+	if (p[i+3] != 0x0e &amp;&amp; p[i+3] != 0x0f)
&lt;br&gt;+	 &amp;nbsp;break;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;this-&amp;gt;context-&amp;gt;extradata[i] = p[i];
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;this-&amp;gt;context-&amp;gt;extradata_size++;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;lprintf(&amp;quot;ff_video_decoder: found VC1 sequence header\n&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;return 1;
&lt;br&gt;+ &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp;xprintf(this-&amp;gt;stream-&amp;gt;xine, XINE_VERBOSITY_DEBUG,
&lt;br&gt;+	 &amp;nbsp;&amp;quot;ffmpeg_video_dec: VC1 extradata missing !\n&amp;quot;);
&lt;br&gt;+ &amp;nbsp;return 0;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+static int ff_check_extradata(ff_video_decoder_t *this, unsigned int codec_type, buf_element_t *buf)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;if (this-&amp;gt;context &amp;&amp; this-&amp;gt;context-&amp;gt;extradata)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;return 1;
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp;switch (codec_type) {
&lt;br&gt;+ &amp;nbsp;case BUF_VIDEO_VC1:
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;return ff_vc1_find_header(this, buf);
&lt;br&gt;+ &amp;nbsp;default:;
&lt;br&gt;+ &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp;return 1;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;#endif /* AVCODEC_HAS_REORDERED_OPAQUE */
&lt;br&gt;&amp;nbsp;static void ff_handle_buffer (ff_video_decoder_t *this, buf_element_t *buf) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;uint8_t *chunk_buf = this-&amp;gt;buf;
&lt;br&gt;@@ -1176,6 +1235,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (this-&amp;gt;decoder_init_mode) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int codec_type = buf-&amp;gt;type &amp; 0xFFFF0000;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;if (!ff_check_extradata(this, codec_type, buf))
&lt;br&gt;+	return;
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* init ffmpeg decoder */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;init_video_codec(this, codec_type);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;init_postprocess(this);
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;&lt;tt&gt;[xine-lib-1.1.16.3-ffmpeg-vc1-reopen.diff]&lt;/tt&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;--- src/combined/ffmpeg/ff_video_decoder.c	2009-04-16 14:24:20.000000000 +0300
&lt;br&gt;+++ src/combined/ffmpeg/ff_video_decoder.c	2009-09-24 15:21:25.000000000 +0300
&lt;br&gt;@@ -340,6 +340,22 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+ &amp;nbsp;if (this-&amp;gt;codec-&amp;gt;id == CODEC_ID_VC1 &amp;&amp; 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;(!this-&amp;gt;bih.biWidth || !this-&amp;gt;bih.biHeight)) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;/* VC1 codec must be re-opened with correct width and height. */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;avcodec_close(this-&amp;gt;context);
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;if (avcodec_open (this-&amp;gt;context, this-&amp;gt;codec) &amp;lt; 0) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;pthread_mutex_unlock(&amp;ffmpeg_lock);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;xprintf (this-&amp;gt;stream-&amp;gt;xine, XINE_VERBOSITY_LOG, 
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; &amp;nbsp; _(&amp;quot;ffmpeg_video_dec: couldn't open decoder (pass 2)\n&amp;quot;));
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;free(this-&amp;gt;context);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;this-&amp;gt;context = NULL;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;_x_stream_info_set(this-&amp;gt;stream, XINE_STREAM_INFO_VIDEO_HANDLED, 0);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;return;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (this-&amp;gt;class-&amp;gt;thread_count &amp;gt; 1) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;avcodec_thread_init(this-&amp;gt;context, this-&amp;gt;class-&amp;gt;thread_count);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;this-&amp;gt;context-&amp;gt;thread_count = this-&amp;gt;class-&amp;gt;thread_count;
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25596148&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--xine-user--Blu-Ray-patch-not-working-tp25596148p25596148.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25463335</id>
	<title>Re: Should I clean up and submit patches?</title>
	<published>2009-09-15T16:10:50Z</published>
	<updated>2009-09-15T16:10:50Z</updated>
	<author>
		<name>Roger Scott-2</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
Hi Darren,&lt;br&gt;&lt;br&gt;&amp;gt; The first step is to post them here with suitable subject lines and&lt;br&gt;&amp;gt; descriptions. If you have a local xine-lib repository (cloned from [0]), then&lt;br&gt;&amp;gt; you could commit them then use &quot;hg email&quot; to send them.&lt;br&gt;&lt;br&gt;I haven't received any responses other than your own so I'll leave it on the back burner until I have time to clean things up.&amp;nbsp; Fixing deadlocks and changing my code so it can execute MHP-like java xlets will get a higher priority.&lt;br&gt;&lt;br&gt;&amp;gt; BTW, you should check if any significant changes are needed for porting to&lt;br&gt;&amp;gt; the 1.2 branch.&lt;br&gt;&lt;br&gt;The input and demux patches will probably be fine but the teletext spu decoder will at a minimum need tweaking for the different API.&amp;nbsp; I've never managed to get the 1.2 branch to properly compile and link so I can't say what else might be needed.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Roger.&lt;br&gt;&lt;br /&gt;&lt;hr /&gt;Click Here &lt;a href='http://clk.atdmt.com/NMN/go/150855801/direct/01/' target='_new' rel=&quot;nofollow&quot;&gt;View photos of singles in your area&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25463335&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Should-I-clean-up-and-submit-patches--tp25322948p25463335.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25445632</id>
	<title>Re: help with a suspected race condition in video_out.c</title>
	<published>2009-09-14T16:49:22Z</published>
	<updated>2009-09-14T16:49:22Z</updated>
	<author>
		<name>Roger Scott-2</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
&amp;gt; Roger,&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
Hi Ian (and xine-devel list),&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;gt; This sounds a lot like a deadlock I have encountered during stress&lt;div class='shrinkable-quote'&gt;&lt;BR&gt;&amp;gt; testing of an abandoned project. In my case the deadlock was caused by&lt;BR&gt;&amp;gt; the unprotected use of stream-&amp;gt;demux_action_pending internal variable&lt;BR&gt;&amp;gt; from play_internal() and from within the demuxer loop.&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; I've attached a patch that fixed it for me. Basically direct access to&lt;BR&gt;&amp;gt; demux_action_pending is replaced with _x_action_raise() and&lt;BR&gt;&amp;gt; _x_action_lower() which use a mutex for thread safety.&lt;BR&gt;&amp;gt; &lt;BR&gt;&amp;gt; If this resolves your bug then I'll submit the patch for inclusion in&lt;BR&gt;&amp;gt; Xine.&lt;/div&gt;
&amp;nbsp;&lt;BR&gt;
Unfortunately your patch didn't fix this particular problem but I'd like to test it further as I think it may address some deadlock issues I had to work around by using mutexes and delays around xine calls in my user code.&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
I think I have now&amp;nbsp;resolved&amp;nbsp;my original&amp;nbsp;problem and it was indeed a race condition.&amp;nbsp; When doing a seek immediately after the first play the code was&amp;nbsp;trying to complete&amp;nbsp;a flush of the&amp;nbsp;buffers by decrementing a discard counter (possibly assuming it had been incremented somewhere else first).&amp;nbsp; This was causing the counter to go negative and hence all checks against &quot;this-&amp;gt;discard_buffer&quot; were evaluating to true and it was never recovering.&amp;nbsp; I have attached a patch (had to fire up IE in VirtualBox to get hotmail attaches to work properly) which disallows negative values.&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
I also note that there appears to be a similar issue in the audio_out.c file as well as a lack of mutex locking around the increment/decrement.&amp;nbsp; A patch is also attached for this.&amp;nbsp; I think this may address similar symptoms I have had with the audio where it would go quiet after a stop/close/open/play sequence.&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
The patches are against an older snapshot but they should go into the newer versions without difficulty.&amp;nbsp; Could someone please check these patches (they're quite small) and push them into the queue if they are okay?&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
Regards,&lt;BR&gt;
Roger.&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;&lt;br /&gt;&lt;hr /&gt;Click Here &lt;a href='http://clk.atdmt.com/NMN/go/150855801/direct/01/' target='_new' rel=&quot;nofollow&quot;&gt;View photos of singles in your area&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;--- b/src/xine-engine/video_out.c	2008-12-07 10:32:45.000000000 +1100
&lt;br&gt;+++ /home/roger/xine-lib-e9b57f7f5399/src/xine-engine/video_out.c	2009-09-15 09:07:53.000000000 +1000
&lt;br&gt;@@ -1469,10 +1469,11 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;pthread_mutex_lock(&amp;this-&amp;gt;display_img_buf_queue-&amp;gt;mutex);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if(value)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this-&amp;gt;discard_frames++;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this-&amp;gt;discard_frames--;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;if (this-&amp;gt;discard_frames &amp;lt; 0) this-&amp;gt;discard_frames = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;pthread_mutex_unlock(&amp;this-&amp;gt;display_img_buf_queue-&amp;gt;mutex);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ret = this-&amp;gt;discard_frames;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* discard buffers here because we have no output thread */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (this-&amp;gt;grab_only &amp;&amp; this-&amp;gt;discard_frames) {
&lt;br&gt;&lt;br /&gt;--- b/src/xine-engine/audio_out.c	2008-12-07 10:32:45.000000000 +1100
&lt;br&gt;+++ /home/roger/xine-lib-e9b57f7f5399/src/xine-engine/audio_out.c	2009-09-15 09:09:00.000000000 +1000
&lt;br&gt;@@ -1868,14 +1868,17 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;case AO_PROP_DISCARD_BUFFERS:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* recursive discard buffers setting */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;pthread_mutex_lock(&amp;this-&amp;gt;flush_audio_driver_lock);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if(value)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this-&amp;gt;discard_buffers++;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this-&amp;gt;discard_buffers--;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;if (this-&amp;gt;discard_buffers &amp;lt; 0) this-&amp;gt;discard_buffers = 0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;pthread_mutex_unlock(&amp;this-&amp;gt;flush_audio_driver_lock);
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ret = this-&amp;gt;discard_buffers;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* discard buffers here because we have no output thread */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (this-&amp;gt;grab_only &amp;&amp; this-&amp;gt;discard_buffers) {
&lt;br&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25445632&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/help-with-a-suspected-race-condition-in-video_out.c-tp25419979p25445632.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25440235</id>
	<title>Re: help with a suspected race condition in video_out.c</title>
	<published>2009-09-14T10:01:43Z</published>
	<updated>2009-09-14T10:01:43Z</updated>
	<author>
		<name>Ian Rae-3</name>
	</author>
	<content type="html">Roger,
&lt;br&gt;&lt;br&gt;This sounds a lot like a deadlock I have encountered during stress
&lt;br&gt;testing of an abandoned project. In my case the deadlock was caused by
&lt;br&gt;the unprotected use of stream-&amp;gt;demux_action_pending internal variable
&lt;br&gt;from play_internal() and from within the demuxer loop.
&lt;br&gt;&lt;br&gt;I've attached a patch that fixed it for me. Basically direct access to
&lt;br&gt;demux_action_pending is replaced with _x_action_raise() and
&lt;br&gt;_x_action_lower() which use a mutex for thread safety.
&lt;br&gt;&lt;br&gt;If this resolves your bug then I'll submit the patch for inclusion in
&lt;br&gt;Xine.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Ian.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Sun, 2009-09-13 at 12:45 +1030, Roger Scott wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi xine developers,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've been banging my head against a brick wall for a while now and
&lt;br&gt;&amp;gt; don't seem any closer in finding a solution to a problem so I'm hoping
&lt;br&gt;&amp;gt; someone here can help or at least point me in the right direction.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What I'm getting is frozen video when playing from a new position
&lt;br&gt;&amp;gt; after opening the stream. &amp;nbsp;(eg xine_open(s,m); xine_play(s,0,0);
&lt;br&gt;&amp;gt; some_stuff(); xine_play(s,0,pos )). &amp;nbsp;I suspect it's some kind of race
&lt;br&gt;&amp;gt; condition because sometimes it works and sometimes it doesn't. &amp;nbsp;I can
&lt;br&gt;&amp;gt; pause the stream and restart it and it's still frozen. &amp;nbsp;The audio
&lt;br&gt;&amp;gt; still works, as does SPU/OSD output although the timing for the latter
&lt;br&gt;&amp;gt; seems somewhat off (sped up).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; From what I can figure it's a bug somewhere in video_out.c but I don't
&lt;br&gt;&amp;gt; know enough of the internals to be able to track it down. &amp;nbsp;Frames are
&lt;br&gt;&amp;gt; being appended to the display buffer but there never seems to be
&lt;br&gt;&amp;gt; anything available (ie get_next_frame always returns 0). &amp;nbsp;There's no
&lt;br&gt;&amp;gt; deadlock as all the loops keep going and I can stop and restart the
&lt;br&gt;&amp;gt; stream and sometimes the video then works. &amp;nbsp;It's independent of the
&lt;br&gt;&amp;gt; video output plugin as it's occurring with xv, vdpau, xshm and DFB
&lt;br&gt;&amp;gt; drivers. &amp;nbsp;My suspicion is that part of the engine is waiting for the
&lt;br&gt;&amp;gt; first frame whilst another part thinks it's already been done but I'm
&lt;br&gt;&amp;gt; not sure. &amp;nbsp;It might be a frame expiry problem but I'm not getting
&lt;br&gt;&amp;gt; continuous discarded or skipped messages.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Unfortunately the attach for hotmail doesn't seem to work so I've
&lt;br&gt;&amp;gt; appended a few lines from turning on the logging in video_out.c below.
&lt;br&gt;&amp;gt; Although the numbers vary it's essentially the same continuing output.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Help please.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Roger.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --------------------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; video_out: (video_out_loop:1159) loop iteration at 455657
&lt;br&gt;&amp;gt; video_out: (get_next_frame:919) no frame
&lt;br&gt;&amp;gt; video_out: (get_next_frame:942) no frame, but no backup frame
&lt;br&gt;&amp;gt; video_out: (video_out_loop:1219) next_frame_vpts is 0
&lt;br&gt;&amp;gt; video_out: (video_out_loop:1239) 1000 usec to sleep at master vpts
&lt;br&gt;&amp;gt; 455659
&lt;br&gt;&amp;gt; video_out: (vo_frame_draw:463) got image oat master vpts 455849. vpts
&lt;br&gt;&amp;gt; for pictur
&lt;br&gt;&amp;gt; e is 3623016 (pts was 1477219824)
&lt;br&gt;&amp;gt; video_out: (vo_frame_draw:517) delivery diff : 3167167, current vpts
&lt;br&gt;&amp;gt; is 455849,
&lt;br&gt;&amp;gt; 0 frames to skip
&lt;br&gt;&amp;gt; video_out: (vo_frame_draw:568) frame is ok =&amp;gt; appending to display
&lt;br&gt;&amp;gt; buffer
&lt;br&gt;&amp;gt; video_out: (vo_get_frame:384) get_frame (720 x 576)
&lt;br&gt;&amp;gt; video_out: (vo_remove_from_img_buf_queue_int:236) frame format hit
&lt;br&gt;&amp;gt; (4/10)
&lt;br&gt;&amp;gt; video_out: (vo_get_frame:391) got a frame -&amp;gt; pthread_mutex_lock
&lt;br&gt;&amp;gt; (&amp;img-&amp;gt;mutex)
&lt;br&gt;&amp;gt; video_out: (vo_get_frame:426) get_frame (720 x 576) done
&lt;br&gt;&amp;gt; video_out: (vo_frame_draw:463) got image oat master vpts 456381. vpts
&lt;br&gt;&amp;gt; for picture is 3626619 (pts was 1477223424)
&lt;br&gt;&amp;gt; video_out: (vo_frame_draw:517) delivery diff : 3170238, current vpts
&lt;br&gt;&amp;gt; is 456381,
&lt;br&gt;&amp;gt; 0 frames to skip
&lt;br&gt;&amp;gt; video_out: (vo_frame_draw:568) frame is ok =&amp;gt; appending to display
&lt;br&gt;&amp;gt; buffer
&lt;br&gt;&amp;gt; video_out: (vo_get_frame:384) get_frame (720 x 576)
&lt;br&gt;&amp;gt; video_out: (vo_remove_from_img_buf_queue_int:236) frame format hit
&lt;br&gt;&amp;gt; (4/10)
&lt;br&gt;&amp;gt; video_out: (vo_get_frame:391) got a frame -&amp;gt; pthread_mutex_lock
&lt;br&gt;&amp;gt; (&amp;img-&amp;gt;mutex)
&lt;br&gt;&amp;gt; video_out: (vo_get_frame:426) get_frame (720 x 576) done
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ______________________________________________________________________
&lt;br&gt;&amp;gt; Click Here View photos of singles in your area
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with 
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________ xine-devel mailing list &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25440235&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;tt&gt;[video_out_deadlock.patch]&lt;/tt&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;diff --git a/src/xine-lib/src/xine-engine/demux.c b/src/xine-lib/src/xine-engine/demux.c
&lt;br&gt;index 4957841..e52ce96 100644
&lt;br&gt;--- a/src/xine-lib/src/xine-engine/demux.c
&lt;br&gt;+++ b/src/xine-lib/src/xine-engine/demux.c
&lt;br&gt;@@ -149,7 +149,7 @@ void _x_demux_control_headers_done (xine_stream_t *stream) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;buf_element_t *buf_video, *buf_audio;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;/* we use demux_action_pending to wake up sleeping spu decoders */
&lt;br&gt;- &amp;nbsp;stream-&amp;gt;demux_action_pending = 1;
&lt;br&gt;+ &amp;nbsp;_x_action_raise(stream);
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;/* allocate the buffers before grabbing the lock to prevent cyclic wait situations */
&lt;br&gt;&amp;nbsp; &amp;nbsp;buf_video = stream-&amp;gt;video_fifo-&amp;gt;buffer_pool_alloc (stream-&amp;gt;video_fifo);
&lt;br&gt;@@ -195,7 +195,7 @@ void _x_demux_control_headers_done (xine_stream_t *stream) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;pthread_cond_timedwait (&amp;stream-&amp;gt;counter_changed, &amp;stream-&amp;gt;counter_lock, &amp;ts);
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp;stream-&amp;gt;demux_action_pending = 0;
&lt;br&gt;+ &amp;nbsp;_x_action_lower(stream);
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_cond_signal(&amp;stream-&amp;gt;demux_resume);
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;lprintf (&amp;quot;headers processed.\n&amp;quot;);
&lt;br&gt;@@ -282,7 +282,7 @@ static void *demux_loop (void *stream_gen) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;status = stream-&amp;gt;demux_plugin-&amp;gt;send_chunk(stream-&amp;gt;demux_plugin);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* someone may want to interrupt us */
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;if( stream-&amp;gt;demux_action_pending ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;if (_x_action_pending(stream)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;struct timeval tv;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;struct timespec ts;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -363,9 +363,9 @@ int _x_demux_start_thread (xine_stream_t *stream) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;lprintf (&amp;quot;start thread called\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;- &amp;nbsp;stream-&amp;gt;demux_action_pending = 1;
&lt;br&gt;+ &amp;nbsp;_x_action_raise(stream);
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_mutex_lock( &amp;stream-&amp;gt;demux_lock );
&lt;br&gt;- &amp;nbsp;stream-&amp;gt;demux_action_pending = 0;
&lt;br&gt;+ &amp;nbsp;_x_action_lower(stream);
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_cond_signal(&amp;stream-&amp;gt;demux_resume);
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;if( !stream-&amp;gt;demux_thread_running ) {
&lt;br&gt;@@ -394,10 +394,10 @@ int _x_demux_stop_thread (xine_stream_t *stream) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;lprintf (&amp;quot;stop thread called\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;- &amp;nbsp;stream-&amp;gt;demux_action_pending = 1;
&lt;br&gt;+ &amp;nbsp;_x_action_raise(stream);
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_mutex_lock( &amp;stream-&amp;gt;demux_lock );
&lt;br&gt;&amp;nbsp; &amp;nbsp;stream-&amp;gt;demux_thread_running = 0;
&lt;br&gt;- &amp;nbsp;stream-&amp;gt;demux_action_pending = 0;
&lt;br&gt;+ &amp;nbsp;_x_action_lower(stream);
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_cond_signal(&amp;stream-&amp;gt;demux_resume);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;/* At that point, the demuxer has sent the last audio/video buffer,
&lt;br&gt;@@ -501,7 +501,7 @@ off_t _x_read_abort (xine_stream_t *stream, int fd, char *buf, off_t todo) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* aborts current read if action pending. otherwise xine
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * cannot be stopped when no more data is available.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( stream-&amp;gt;demux_action_pending )
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (_x_action_pending(stream))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return total;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;@@ -542,6 +542,22 @@ int _x_action_pending (xine_stream_t *stream) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;return stream-&amp;gt;demux_action_pending;
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+/* set demux_action_pending in a thread safe way */
&lt;br&gt;+void _x_action_raise (xine_stream_t *stream)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;pthread_mutex_lock(&amp;stream-&amp;gt;demux_action_lock);
&lt;br&gt;+ &amp;nbsp;stream-&amp;gt;demux_action_pending++;
&lt;br&gt;+ &amp;nbsp;pthread_mutex_unlock(&amp;stream-&amp;gt;demux_action_lock);
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+/* reset demux_action_pending in a thread safe way */
&lt;br&gt;+void _x_action_lower (xine_stream_t *stream)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;pthread_mutex_lock(&amp;stream-&amp;gt;demux_action_lock);
&lt;br&gt;+ &amp;nbsp;stream-&amp;gt;demux_action_pending--;
&lt;br&gt;+ &amp;nbsp;pthread_mutex_unlock(&amp;stream-&amp;gt;demux_action_lock);
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;/*
&lt;br&gt;&amp;nbsp; * demuxer helper function to send data to fifo, breaking into smaller
&lt;br&gt;&amp;nbsp; * pieces (bufs) as needed.
&lt;br&gt;diff --git a/src/xine-lib/src/xine-engine/io_helper.c b/src/xine-lib/src/xine-engine/io_helper.c
&lt;br&gt;index c3654c7..a05dab5 100644
&lt;br&gt;--- a/src/xine-lib/src/xine-engine/io_helper.c
&lt;br&gt;+++ b/src/xine-lib/src/xine-engine/io_helper.c
&lt;br&gt;@@ -244,7 +244,7 @@ int _x_io_select (xine_stream_t *stream, int fd, int state, int timeout_msec) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * &amp;nbsp; aborts current read if action pending. otherwise xine
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * &amp;nbsp; cannot be stopped when no more data is available.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (stream &amp;&amp; stream-&amp;gt;demux_action_pending)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (stream &amp;&amp; _x_action_pending(stream))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return XIO_ABORTED;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case WAIT_ABANDONED:
&lt;br&gt;@@ -288,7 +288,7 @@ int _x_io_select (xine_stream_t *stream, int fd, int state, int timeout_msec) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; * &amp;nbsp; aborts current read if action pending. otherwise xine
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; * &amp;nbsp; cannot be stopped when no more data is available.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;- &amp;nbsp; &amp;nbsp;if (stream &amp;&amp; stream-&amp;gt;demux_action_pending)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;if (stream &amp;&amp; _x_action_pending(stream))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return XIO_ABORTED;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;total_time_usec += XIO_POLLING_INTERVAL;
&lt;br&gt;diff --git a/src/xine-lib/src/xine-engine/video_decoder.c b/src/xine-lib/src/xine-engine/video_decoder.c
&lt;br&gt;index c88e017..b99f8ab 100644
&lt;br&gt;--- a/src/xine-lib/src/xine-engine/video_decoder.c
&lt;br&gt;+++ b/src/xine-lib/src/xine-engine/video_decoder.c
&lt;br&gt;@@ -91,7 +91,7 @@ int _x_spu_decoder_sleep(xine_stream_t *stream, int64_t next_spu_vpts)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;thread_vacant = (stream-&amp;gt;video_fifo-&amp;gt;first-&amp;gt;type != BUF_CONTROL_FLUSH_DECODER);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* we have to return if the demuxer needs us to release a buffer */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (thread_vacant)
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;thread_vacant = !stream-&amp;gt;demux_action_pending;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;thread_vacant = !_x_action_pending(stream);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;} while (wait == SPU_SLEEP_INTERVAL &amp;&amp; thread_vacant);
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;diff --git a/src/xine-lib/src/xine-engine/xine.c b/src/xine-lib/src/xine-engine/xine.c
&lt;br&gt;index 39f2f2d..bc6ed6a 100644
&lt;br&gt;--- a/src/xine-lib/src/xine-engine/xine.c
&lt;br&gt;+++ b/src/xine-lib/src/xine-engine/xine.c
&lt;br&gt;@@ -629,6 +629,7 @@ xine_stream_t *xine_stream_new (xine_t *this,
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_mutex_init (&amp;stream-&amp;gt;info_mutex, NULL);
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_mutex_init (&amp;stream-&amp;gt;meta_mutex, NULL);
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_mutex_init (&amp;stream-&amp;gt;demux_lock, NULL);
&lt;br&gt;+ &amp;nbsp;pthread_mutex_init (&amp;stream-&amp;gt;demux_action_lock, NULL);
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_mutex_init (&amp;stream-&amp;gt;demux_mutex, NULL);
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_cond_init &amp;nbsp;(&amp;stream-&amp;gt;demux_resume, NULL);
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_mutex_init (&amp;stream-&amp;gt;event_queues_lock, NULL);
&lt;br&gt;@@ -1325,7 +1326,7 @@ static int play_internal (xine_stream_t *stream, int start_pos, int start_time)
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;/* hint demuxer thread we want to interrupt it */
&lt;br&gt;- &amp;nbsp;stream-&amp;gt;demux_action_pending = 1;
&lt;br&gt;+ &amp;nbsp;_x_action_raise(stream);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;/* set normal speed */
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (_x_get_speed(stream) != XINE_SPEED_NORMAL)
&lt;br&gt;@@ -1344,7 +1345,7 @@ static int play_internal (xine_stream_t *stream, int start_pos, int start_time)
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_mutex_lock( &amp;stream-&amp;gt;demux_lock );
&lt;br&gt;&amp;nbsp; &amp;nbsp;/* demux_lock taken. now demuxer is suspended */
&lt;br&gt;- &amp;nbsp;stream-&amp;gt;demux_action_pending = 0;
&lt;br&gt;+ &amp;nbsp;_x_action_lower(stream);
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_cond_signal(&amp;stream-&amp;gt;demux_resume);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;/* set normal speed again (now that demuxer/input pair is suspended) 
&lt;br&gt;@@ -1473,6 +1474,7 @@ static void xine_dispose_internal (xine_stream_t *stream) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_cond_destroy &amp;nbsp;(&amp;stream-&amp;gt;counter_changed);
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_mutex_destroy (&amp;stream-&amp;gt;demux_mutex);
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_cond_destroy &amp;nbsp;(&amp;stream-&amp;gt;demux_resume);
&lt;br&gt;+ &amp;nbsp;pthread_mutex_destroy (&amp;stream-&amp;gt;demux_action_lock);
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_mutex_destroy (&amp;stream-&amp;gt;demux_lock);
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_mutex_destroy (&amp;stream-&amp;gt;first_frame_lock);
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_cond_destroy &amp;nbsp;(&amp;stream-&amp;gt;first_frame_reached);
&lt;br&gt;diff --git a/src/xine-lib/src/xine-engine/xine_internal.h b/src/xine-lib/src/xine-engine/xine_internal.h
&lt;br&gt;index f97ca0b..580821d 100644
&lt;br&gt;--- a/src/xine-lib/src/xine-engine/xine_internal.h
&lt;br&gt;+++ b/src/xine-lib/src/xine-engine/xine_internal.h
&lt;br&gt;@@ -336,6 +336,7 @@ struct xine_stream_s {
&lt;br&gt;&amp;nbsp; &amp;nbsp;int &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;demux_thread_running;
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_mutex_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;demux_lock;
&lt;br&gt;&amp;nbsp; &amp;nbsp;int &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;demux_action_pending;
&lt;br&gt;+ &amp;nbsp;pthread_mutex_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;demux_action_lock;
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_cond_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; demux_resume;
&lt;br&gt;&amp;nbsp; &amp;nbsp;pthread_mutex_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;demux_mutex; /* used in _x_demux_... functions to synchronize order of pairwise A/V buffer operations */
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -440,6 +441,9 @@ off_t _x_read_abort (xine_stream_t *stream, int fd, char *buf, off_t todo) XINE_
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;int _x_action_pending (xine_stream_t *stream) XINE_PROTECTED;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+void _x_action_raise (xine_stream_t *stream) XINE_PROTECTED;
&lt;br&gt;+void _x_action_lower (xine_stream_t *stream) XINE_PROTECTED;
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;void _x_demux_send_data(fifo_buffer_t *fifo, uint8_t *data, int size,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int64_t pts, uint32_t type, uint32_t decoder_flags,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int input_normpos, int input_time, int total_time,
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with 
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25440235&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/help-with-a-suspected-race-condition-in-video_out.c-tp25419979p25440235.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25419979</id>
	<title>help with a suspected race condition in video_out.c</title>
	<published>2009-09-12T19:15:24Z</published>
	<updated>2009-09-12T19:15:24Z</updated>
	<author>
		<name>Roger Scott-2</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
Hi xine developers,&lt;br&gt;&lt;br&gt;I've been banging my head against a brick wall for a while now and don't seem any closer in finding a solution to a problem so I'm hoping someone here can help or at least point me in the right direction.&lt;br&gt;&lt;br&gt;What I'm getting is frozen video when playing from a new position after opening the stream.&amp;nbsp; (eg xine_open(s,m); xine_play(s,0,0); some_stuff(); xine_play(s,0,pos )).&amp;nbsp; I suspect it's some kind of race condition because sometimes it works and sometimes it doesn't.&amp;nbsp; I can pause the stream and restart it and it's still frozen.&amp;nbsp; The audio still works, as does SPU/OSD output although the timing for the latter seems somewhat off (sped up).&lt;br&gt;&lt;br&gt;From what I can figure it's a bug somewhere in video_out.c but I don't know enough of the internals to be able to track it down.&amp;nbsp; Frames are being appended to the display buffer but there never seems to be anything available (ie get_next_frame always returns 0).&amp;nbsp; There's no deadlock as all the loops keep going and I can stop and restart the stream and sometimes the video then works.&amp;nbsp; It's independent of the video output plugin as it's occurring with xv, vdpau, xshm and DFB drivers.&amp;nbsp; My suspicion is that part of the engine is waiting for the first frame whilst another part thinks it's already been done but I'm not sure.&amp;nbsp; It might be a frame expiry problem but I'm not getting continuous discarded or skipped messages.&lt;br&gt;&lt;br&gt;Unfortunately the attach for hotmail doesn't seem to work so I've appended a few lines from turning on the logging in video_out.c below.&amp;nbsp; Although the numbers vary it's essentially the same continuing output.&lt;br&gt;&lt;br&gt;Help please.&lt;br&gt;&lt;br&gt;Roger.&lt;br&gt;&lt;br&gt;--------------------------------------------------------------&lt;br&gt;&lt;br&gt;video_out: (video_out_loop:1159) loop iteration at 455657&lt;br&gt;video_out: (get_next_frame:919) no frame&lt;br&gt;video_out: (get_next_frame:942) no frame, but no backup frame&lt;br&gt;video_out: (video_out_loop:1219) next_frame_vpts is 0&lt;br&gt;video_out: (video_out_loop:1239) 1000 usec to sleep at master vpts 455659&lt;br&gt;video_out: (vo_frame_draw:463) got image oat master vpts 455849. vpts for pictur&lt;br&gt;e is 3623016 (pts was 1477219824)&lt;br&gt;video_out: (vo_frame_draw:517) delivery diff : 3167167, current vpts is 455849,&lt;br&gt;0 frames to skip&lt;br&gt;video_out: (vo_frame_draw:568) frame is ok =&amp;gt; appending to display buffer&lt;br&gt;video_out: (vo_get_frame:384) get_frame (720 x 576)&lt;br&gt;video_out: (vo_remove_from_img_buf_queue_int:236) frame format hit (4/10)&lt;br&gt;video_out: (vo_get_frame:391) got a frame -&amp;gt; pthread_mutex_lock (&amp;amp;img-&amp;gt;mutex)&lt;br&gt;video_out: (vo_get_frame:426) get_frame (720 x 576) done&lt;br&gt;video_out: (vo_frame_draw:463) got image oat master vpts 456381. vpts for picture is 3626619 (pts was 1477223424)&lt;br&gt;video_out: (vo_frame_draw:517) delivery diff : 3170238, current vpts is 456381,&lt;br&gt;0 frames to skip&lt;br&gt;video_out: (vo_frame_draw:568) frame is ok =&amp;gt; appending to display buffer&lt;br&gt;video_out: (vo_get_frame:384) get_frame (720 x 576)&lt;br&gt;video_out: (vo_remove_from_img_buf_queue_int:236) frame format hit (4/10)&lt;br&gt;video_out: (vo_get_frame:391) got a frame -&amp;gt; pthread_mutex_lock (&amp;amp;img-&amp;gt;mutex)&lt;br&gt;video_out: (vo_get_frame:426) get_frame (720 x 576) done&lt;br&gt;&lt;br&gt;&lt;br /&gt;&lt;hr /&gt;Click Here &lt;a href='http://clk.atdmt.com/NMN/go/150855801/direct/01/' target='_new' rel=&quot;nofollow&quot;&gt;View photos of singles in your area&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with 
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25419979&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/help-with-a-suspected-race-condition-in-video_out.c-tp25419979p25419979.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25323096</id>
	<title>Re: Should I clean up and submit patches?</title>
	<published>2009-09-06T16:07:28Z</published>
	<updated>2009-09-06T16:07:28Z</updated>
	<author>
		<name>Darren Salt</name>
	</author>
	<content type="html">I demand that Roger Scott may or may not have written...
&lt;br&gt;&lt;br&gt;&amp;gt; For the past couple of years I have been applying my own set of rather
&lt;br&gt;&amp;gt; rough patches to the xine library. &amp;nbsp;Although this list seems curiously
&lt;br&gt;&amp;gt; devoid of traffic I thought I'd ask if there was enough interest that it
&lt;br&gt;&amp;gt; would be worth me spending some time to clean them up and submit them?
&lt;br&gt;&lt;br&gt;The first step is to post them here with suitable subject lines and
&lt;br&gt;descriptions. If you have a local xine-lib repository (cloned from [0]), then
&lt;br&gt;you could commit them then use &amp;quot;hg email&amp;quot; to send them.
&lt;br&gt;&lt;br&gt;They'll probably either end up in the patch queue [1] or be committed to the
&lt;br&gt;master repository (and if you want to test stuff that's in the patch queue,
&lt;br&gt;that'd be useful).
&lt;br&gt;&lt;br&gt;BTW, you should check if any significant changes are needed for porting to
&lt;br&gt;the 1.2 branch.
&lt;br&gt;&lt;br&gt;[snip]
&lt;br&gt;&lt;br&gt;[0] &lt;a href=&quot;http://hg.debian.org/hg/xine-lib/xine-lib/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hg.debian.org/hg/xine-lib/xine-lib/&lt;/a&gt;&lt;br&gt;[1] &lt;a href=&quot;http://hg.debian.org/hg/xine-lib/xine-lib-patch-queue/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hg.debian.org/hg/xine-lib/xine-lib-patch-queue/&lt;/a&gt;&lt;br&gt;-- 
&lt;br&gt;| Darren Salt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| linux at youmustbejoking | nr. Ashington, | Doon
&lt;br&gt;| using Debian GNU/Linux | or ds &amp;nbsp; &amp;nbsp;,demon,co,uk &amp;nbsp; &amp;nbsp;| Northumberland | Army
&lt;br&gt;| + Use more efficient products. Use less. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BE MORE ENERGY EFFICIENT.
&lt;br&gt;&lt;br&gt;You will live a long, healthy, happy life and make bags for money.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with 
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25323096&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Should-I-clean-up-and-submit-patches--tp25322948p25323096.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25322948</id>
	<title>Should I clean up and submit patches?</title>
	<published>2009-09-06T15:51:52Z</published>
	<updated>2009-09-06T15:51:52Z</updated>
	<author>
		<name>Roger Scott-2</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
Hello list,&lt;br&gt;&lt;br&gt;For the past couple of years I have been applying my own set of rather rough patches to the xine library.&amp;nbsp; Although this list seems curiously devoid of traffic I thought I'd ask if there was enough interest that it would be worth me spending some time to clean them up and submit them?&amp;nbsp; There are three that might be of interest:&lt;br&gt;&lt;br&gt;1. An amendment to the stdin plugin (fd:// url) to allow a supplied file descriptor number.&amp;nbsp; This is used by my pvr software which handles the creation of a pipe by itself and then passes the descriptor number to xine for display.&lt;br&gt;&lt;br&gt;2. A Topfield rec file input plugin derived from the MPEG-TS plugin.&lt;br&gt;&lt;br&gt;3. A closed caption teletext spu plugin which decodes and displays the DVB teletext captions broadcast in Australia.&amp;nbsp; This is probably the most useful but it also the most rough and I cannot guarantee it will work elsewhere in the world.&lt;br&gt;&lt;br&gt;Any interest?&lt;br&gt;&lt;br&gt;Roger.&lt;br&gt;&lt;br /&gt;&lt;hr /&gt;Find out how here &lt;a href='http://windowslive.ninemsn.com.au/article.aspx?id=823454' target='_new' rel=&quot;nofollow&quot;&gt;Use Messenger in your Hotmail inbox&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with 
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25322948&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Should-I-clean-up-and-submit-patches--tp25322948p25322948.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25251042</id>
	<title>XineLib with XCB support</title>
	<published>2009-09-01T20:13:40Z</published>
	<updated>2009-09-01T20:13:40Z</updated>
	<author>
		<name>kkumar s</name>
	</author>
	<content type="html">Hi,&lt;br&gt;   Can you please let me know how to configure and build
xine-vdpau /  xine library  with  xcb support.  When I do a normal
configure and then make and make install ,&lt;br&gt;&lt;br&gt;I do not see  any  &lt;span&gt;xineplug_vo_out_xcb*  files.     I tried  configure with  --with-xcb  option but still did not make any difference. &lt;br&gt;
&lt;br&gt;&lt;br&gt; When I try playing  any media with dragonplayer ( which uses phonon),  I get the following error ,&lt;br&gt;&lt;br&gt;&amp;quot;No xine video output plugin using libxcb for threadsafe access to the X server found. No video for you.&amp;quot;&lt;br&gt;

&lt;br&gt;Can anyone please help me out with this ?&lt;br&gt;&lt;br&gt;&lt;br&gt;thanks,&lt;br&gt;kumar.&lt;/span&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with 
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25251042&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/XineLib-with-XCB-support-tp25251042p25251042.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24891136</id>
	<title>[PATCH] png files for skins should not be included twice</title>
	<published>2009-08-09T13:58:40Z</published>
	<updated>2009-08-09T13:58:40Z</updated>
	<author>
		<name>Chris Rankin</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I've noticed that the xine-ui RPM is refusing to build, because some .png files are being included twice. This patch fixes it.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Chris
&lt;br&gt;&lt;br&gt;Index: Makefile.am
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvsroot/xine/xine-ui/src/xitk/skins/xinetic/Makefile.am,v
&lt;br&gt;retrieving revision 1.16
&lt;br&gt;diff -u -u -r1.16 Makefile.am
&lt;br&gt;--- Makefile.am	1 Jul 2006 12:24:09 -0000	1.16
&lt;br&gt;+++ Makefile.am	9 Aug 2009 20:54:09 -0000
&lt;br&gt;@@ -15,7 +15,6 @@
&lt;br&gt;&amp;nbsp;	CtlSave.png	 &amp;nbsp; MainNext.png	 &amp;nbsp; &amp;nbsp; &amp;nbsp;MrlDismiss.png	PlPlay.png	Letters.png &amp;nbsp; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;&amp;nbsp;	MainPause.png &amp;nbsp; &amp;nbsp; &amp;nbsp;MrlSelect.png &amp;nbsp; &amp;nbsp; &amp;nbsp;Letters2.png &amp;nbsp; &amp;nbsp; &amp;nbsp;MrlFlit.png &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;&amp;nbsp;	MainAutoButton.png MainPlay.png	 &amp;nbsp; &amp;nbsp; &amp;nbsp;Onglet.png	MainNav.png &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;-	MainAutoButton.png MainPlay.png	 &amp;nbsp; &amp;nbsp; &amp;nbsp;Onglet.png	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp;	BigArrowLeft.png &amp;nbsp;BigArrowRight.png &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;&amp;nbsp;	PlSlidHBg.png &amp;nbsp; &amp;nbsp; &amp;nbsp;SliderHPad.png &amp;nbsp; &amp;nbsp; SkSlidHBg.png &amp;nbsp; &amp;nbsp; SlidHPad.png	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp;	SkSlidHPad.png &amp;nbsp; &amp;nbsp; skinconfig
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with 
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24891136&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--png-files-for-skins-should-not-be-included-twice-tp24891136p24891136.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24782930</id>
	<title>[PATCH] Fixes/improvements for CDDA</title>
	<published>2009-08-02T15:08:33Z</published>
	<updated>2009-08-02T15:08:33Z</updated>
	<author>
		<name>Bugzilla from christopher.martin@utoronto.ca</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;Please consider the attached patches. They make several small changes to 
&lt;br&gt;the CDDA plugin, explained below:
&lt;br&gt;&lt;br&gt;1) Accept CDDB return code 211 (&amp;quot;found inexact matches&amp;quot;, i.e. there is 
&lt;br&gt;more than one CDDB entry for the disc in question, as happens on 
&lt;br&gt;occassion). Before, when receiving a 211 response from a CDDB server, 
&lt;br&gt;Xine would simply not display any CDDB information. Now one of the 
&lt;br&gt;responses is displayed, on the theory that something is better than 
&lt;br&gt;nothing.
&lt;br&gt;&lt;br&gt;2) Fix the reading of CDDB information by not setting INPUT_CAP_BLOCK 
&lt;br&gt;for the CDDA plugin (and therefore also setting CD_RAW_FRAME_SIZE to 
&lt;br&gt;0), and allow reading in non-block sized chunks as per 
&lt;br&gt;&lt;a href=&quot;http://hg.debian.org/hg/xine-lib/xine-lib?cmd=changeset;node=a470c338149c;style=gitweb&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hg.debian.org/hg/xine-lib/xine-lib?cmd=changeset;node=a470c338149c;style=gitweb&lt;/a&gt;&lt;br&gt;&lt;br&gt;Explanation: At some point a number of releases ago, a codepath in Xine 
&lt;br&gt;related to the reading of block devices which had been bypassed was 
&lt;br&gt;fixed, which meant that when certain frontends asked Xine to provide 
&lt;br&gt;CDDB information for a disc, querying the name, length, etc. of each 
&lt;br&gt;track, Xine would actually cause a seek to the starting block of each 
&lt;br&gt;track, which meant that before starting to play, the player would pause 
&lt;br&gt;for 5-10 seconds, seeking through each track. This is unnecessary, 
&lt;br&gt;since Xine should have simply used the CD TOC information from the CD 
&lt;br&gt;audio header at the start of the disc. Other frontends handle CDDB 
&lt;br&gt;differently and don't query Xine for information track by track, and so 
&lt;br&gt;never triggered this problem. But for those with the problem, it made 
&lt;br&gt;loading a disc rather slow.
&lt;br&gt;&lt;br&gt;It turns out that the root of the problem is that the CDDA plugin 
&lt;br&gt;shouldn't be setting INPUT_CAP_BLOCK, since Audio CDs are not block 
&lt;br&gt;devices _in the sense that Xine intends_. Simply turning this off fixes 
&lt;br&gt;the problem, with no other side effects (tested locally, for some time 
&lt;br&gt;now, on xine-ui, kscd, kaffeine, amarok, etc.).
&lt;br&gt;&lt;br&gt;This change pairs nicely with a patch originally committed years ago 
&lt;br&gt;(&lt;a href=&quot;http://hg.debian.org/hg/xine-lib/xine-lib?cmd=changeset;node=a470c338149c;style=gitweb&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hg.debian.org/hg/xine-lib/xine-lib?cmd=changeset;node=a470c338149c;style=gitweb&lt;/a&gt;) 
&lt;br&gt;but which was reverted as it inadvertently triggered the same problem 
&lt;br&gt;as is now (properly) fixed by the simple above-mentioned change. Now 
&lt;br&gt;that a better fix is in, it can be re-committed.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Christopher Martin
&lt;br&gt;&lt;br /&gt;[attachment removed]&lt;br /&gt;[attachment removed]&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with 
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;xine-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24782930&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xine-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/xine-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/xine-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--Fixes-improvements-for-CDDA-tp24782930p24782930.html" />
</entry>

</feed>
