Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] play_iframe not working
The 'play_iframe()' function apparently hasn't been working since driver
version 2001-06-18, and still doesn't in the latest CVS driver version.
If one replaces play_iframe() in DVB/driver/dvb.c with the version from
2001-06-18, displaying still pictures (e.g. in VDR's edit mode) works fine
again.
Here's a back patch - I assume that the new version is supposed to be
better than the old one, but apparently something must have gone wrong here...
--- dvb.c.001 Tue Jul 17 18:16:19 2001
+++ dvb.c Thu Jul 19 18:58:51 2001
@@ -4567,25 +4567,20 @@
u8 iframe_header[9] = { 0x00, 0x00, 0x01, 0xe0, 0x00, 0x00, 0x80, 0x00, 0x00 };
-#define MIN_IFRAME 400000
+#define MIN_IFRAME 500000
-void play_iframe(struct dvb_struct *dvb, u8 *buf, unsigned int len, int nonblock)
+void play_iframe(struct dvb_struct *dvb, u8 *buf, int len, int nonblock)
{
int i,n;
- dvb_buf_flush(&dvb->avout);
if (len>=MIN_IFRAME)
n=1;
else
n=MIN_IFRAME/len+1;
+ dvb_play(dvb, iframe_header, 9, nonblock, 1);
for (i=0; i<n; i++) {
- instant_repack(iframe_header, 9, &dvb->ipack[1]);
- instant_repack(buf, len, &dvb->ipack[1]);
- //dvb_play(dvb, iframe_header, 9, 0, 1);
- //dvb_play(dvb, buf, len, 0, 1);
- send_ipack_rest(&dvb->ipack[1]);
+ dvb_play(dvb, buf, len, nonblock, 1);
}
- //vidcom(dvb, 0x001a, 0);
}
Klaus
--
_______________________________________________________________
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Hofmark 2 Email: kls@cadsoft.de
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
_______________________________________________________________
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index