[gst-devel] gstreamer patch for MJPEG/V4L devices part 2

Ronald Bultje rbultje at ronald.bitfreak.net
Tue Oct 2 23:27:04 CEST 2001


Hi again,

here's a patch that, as requested by Wim and Erik, uses a bufferpool.
Tested and works like a charm here. Has custom buffer_copy (g_malloc a new
buffer, memcpy and don't have custom copy, new or free functions),
buffer_free (i.e. re-queue the buffer rather than to delete it) and
buffer_new (just because this is needed) functions. The buffer also gets
the correct timestamp and the correct JPEG size. I didn't encounter any
errors or crashes, just had a few JPEG decoding errors if the CPU usage was
100%. This is probably the reasons because during other tests, which took
much longer but with less demanding configuration options, nothing bad
happened.

Btw, the Makefile.am which was missing (oops) is now also included.

Ronald

-- 
-   .-.
-   /V\    | Ronald Bultje <rbultje at ronald.bitfreak.net>
-  // \\   | Running: Linux 2.4.4 and OpenBSD 2.8
- /(   )\  | http://ronald.bitfreak.net/
-  ^^-^^
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gstreamer-patch.tar.gz
Type: application/x-compressed-tar
Size: 12468 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20011002/33ae4928/attachment.bin>


More information about the gstreamer-devel mailing list