From: Wim T. <wt...@us...> - 2002-07-23 22:05:55
|
CVS Root: /cvsroot/gstreamer Module: gst-plugins Changes by: wtay Date: Tue Jul 23 2002 15:05:53 PDT Log message: Temporary fix until default bufferpool is fixed. Modified files: gst/intfloat : gstfloat2int.c gstint2float.c Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/gst/intfloat/gstfloat2int.c.diff?r1=1.14&r2=1.15 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/gst/intfloat/gstint2float.c.diff?r1=1.13&r2=1.14 ====Begin Diffs==== Index: gstfloat2int.c =================================================================== RCS file: /cvsroot/gstreamer/gst-plugins/gst/intfloat/gstfloat2int.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- gstfloat2int.c 8 Jul 2002 19:42:06 -0000 1.14 +++ gstfloat2int.c 23 Jul 2002 22:05:41 -0000 1.15 @@ -329,7 +329,8 @@ /* g_print("float2int: processing %d frames %d channels\n", num_frames, plugin->channels); */ - buf_out = gst_buffer_new_from_pool(gst_buffer_pool_get_default (buffer_byte_size, 4), 0, 0); + //buf_out = gst_buffer_new_from_pool(gst_buffer_pool_get_default (buffer_byte_size, 4), 0, 0); + buf_out = gst_buffer_new_and_alloc(buffer_byte_size); data_out = (gint16*)GST_BUFFER_DATA(buf_out); GST_BUFFER_SIZE(buf_out) = buffer_byte_size; Index: gstint2float.c =================================================================== RCS file: /cvsroot/gstreamer/gst-plugins/gst/intfloat/gstint2float.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- gstint2float.c 12 Jun 2002 03:32:01 -0000 1.13 +++ gstint2float.c 23 Jul 2002 22:05:41 -0000 1.14 @@ -293,7 +293,8 @@ for (i = 0; i < plugin->numsrcpads; i++) { - buffers[i] = gst_buffer_new_from_pool(pool, 0, 0); + //buffers[i] = gst_buffer_new_from_pool(pool, 0, 0); + buffers[i] = gst_buffer_new_and_alloc(buffer_byte_size); data_out = (gfloat*)GST_BUFFER_DATA(buffers[i]); GST_BUFFER_SIZE(buffers[i]) = buffer_byte_size; |