[svn r228] Optimizations, freeing unallocated resources. trunk
authorrosfran
Tue Dec 19 19:46:07 2006 +0000 (2006-12-19)
branchtrunk
changeset 227899d76d6cfc4
parent 226 1c6e5a5dc5d2
child 228 0c4b132db3e7
[svn r228] Optimizations, freeing unallocated resources.
gst-plugins-mythtv/src/gstmythtvsrc.c
     1.1 --- a/gst-plugins-mythtv/src/gstmythtvsrc.c	Tue Dec 19 17:20:46 2006 +0000
     1.2 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.c	Tue Dec 19 19:46:07 2006 +0000
     1.3 @@ -469,6 +469,7 @@
     1.4    guint buffer_size = ( src->buffer_remain < MAX_READ_SIZE) ? src->buffer_remain : MAX_READ_SIZE;
     1.5    
     1.6    /* Create the buffer. */
     1.7 +  /*
     1.8    ret = gst_pad_alloc_buffer ( GST_BASE_SRC_PAD (GST_BASE_SRC (psrc)),
     1.9        GST_BUFFER_OFFSET_NONE, buffer_size,
    1.10        GST_PAD_CAPS (GST_BASE_SRC_PAD (GST_BASE_SRC (psrc))), outbuf );    
    1.11 @@ -479,7 +480,9 @@
    1.12      else
    1.13        goto done;
    1.14    }
    1.15 -  //*outbuf = gst_buffer_new_and_alloc( buffer_size );
    1.16 +  */
    1.17 +  
    1.18 +  *outbuf = gst_buffer_new( );
    1.19    
    1.20    /* gets the first buffer_size bytes from the byte array buffer variable */ 
    1.21    //guint8 *buf = g_memdup( src->bytes_queue->data, buffer_size );