[svn r225] Some performance optimizations. trunk
authorrosfran
Mon Dec 18 22:19:58 2006 +0000 (2006-12-18)
branchtrunk
changeset 224b3cb9c7ec1a9
parent 223 657379d8f3b6
child 225 332f87ba4017
[svn r225] Some performance optimizations.
gst-plugins-mythtv/src/gstmythtvsrc.c
gst-plugins-mythtv/src/gstmythtvsrc.h
     1.1 --- a/gst-plugins-mythtv/src/gstmythtvsrc.c	Mon Dec 18 22:18:57 2006 +0000
     1.2 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.c	Mon Dec 18 22:19:58 2006 +0000
     1.3 @@ -302,11 +302,6 @@
     1.4  {
     1.5    GstMythtvSrc *this = GST_MYTHTV_SRC (gobject);
     1.6  
     1.7 -  if ( this->th_read_ahead != NULL ) {
     1.8 -    gst_task_stop( this->th_read_ahead );
     1.9 -    this->th_read_ahead = NULL;
    1.10 -  }
    1.11 -
    1.12    if (this->mythtv_caps) {
    1.13      gst_caps_unref (this->mythtv_caps);
    1.14      this->mythtv_caps = NULL;
    1.15 @@ -413,7 +408,7 @@
    1.16    src = GST_MYTHTV_SRC ( psrc );
    1.17  
    1.18    /* The caller should know the number of bytes and not read beyond EOS. */
    1.19 -  if (G_UNLIKELY (src->eos))
    1.20 +  if ( G_UNLIKELY (src->eos) )
    1.21      goto eos;
    1.22    if ( G_UNLIKELY (src->update_prog_chain) )
    1.23      goto change_progchain;
     2.1 --- a/gst-plugins-mythtv/src/gstmythtvsrc.h	Mon Dec 18 22:18:57 2006 +0000
     2.2 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.h	Mon Dec 18 22:19:58 2006 +0000
     2.3 @@ -101,8 +101,6 @@
     2.4  
     2.5    GstPad *sinkpad;
     2.6  
     2.7 -  GstTask *th_read_ahead;
     2.8 -
     2.9    GStaticRecMutex *th_mutex;
    2.10  
    2.11    GByteArray *bytes_queue;