# HG changeset patch # User rosfran # Date 1166557567 0 # Node ID 899d76d6cfc4a74688e814e42e3b9341ec302ab3 # Parent 1c6e5a5dc5d251f56c0ca1b0dab09330e59d7f9d [svn r228] Optimizations, freeing unallocated resources. diff -r 1c6e5a5dc5d2 -r 899d76d6cfc4 gst-plugins-mythtv/src/gstmythtvsrc.c --- a/gst-plugins-mythtv/src/gstmythtvsrc.c Tue Dec 19 17:20:46 2006 +0000 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.c Tue Dec 19 19:46:07 2006 +0000 @@ -469,6 +469,7 @@ guint buffer_size = ( src->buffer_remain < MAX_READ_SIZE) ? src->buffer_remain : MAX_READ_SIZE; /* Create the buffer. */ + /* ret = gst_pad_alloc_buffer ( GST_BASE_SRC_PAD (GST_BASE_SRC (psrc)), GST_BUFFER_OFFSET_NONE, buffer_size, GST_PAD_CAPS (GST_BASE_SRC_PAD (GST_BASE_SRC (psrc))), outbuf ); @@ -479,7 +480,9 @@ else goto done; } - //*outbuf = gst_buffer_new_and_alloc( buffer_size ); + */ + + *outbuf = gst_buffer_new( ); /* gets the first buffer_size bytes from the byte array buffer variable */ //guint8 *buf = g_memdup( src->bytes_queue->data, buffer_size );