# HG changeset patch # User rosfran # Date 1166480398 0 # Node ID b3cb9c7ec1a962e8328d09db8933562fdc20edda # Parent 657379d8f3b6d2125f1fabfa82468207af1ed965 [svn r225] Some performance optimizations. diff -r 657379d8f3b6 -r b3cb9c7ec1a9 gst-plugins-mythtv/src/gstmythtvsrc.c --- a/gst-plugins-mythtv/src/gstmythtvsrc.c Mon Dec 18 22:18:57 2006 +0000 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.c Mon Dec 18 22:19:58 2006 +0000 @@ -302,11 +302,6 @@ { GstMythtvSrc *this = GST_MYTHTV_SRC (gobject); - if ( this->th_read_ahead != NULL ) { - gst_task_stop( this->th_read_ahead ); - this->th_read_ahead = NULL; - } - if (this->mythtv_caps) { gst_caps_unref (this->mythtv_caps); this->mythtv_caps = NULL; @@ -413,7 +408,7 @@ src = GST_MYTHTV_SRC ( psrc ); /* The caller should know the number of bytes and not read beyond EOS. */ - if (G_UNLIKELY (src->eos)) + if ( G_UNLIKELY (src->eos) ) goto eos; if ( G_UNLIKELY (src->update_prog_chain) ) goto change_progchain; diff -r 657379d8f3b6 -r b3cb9c7ec1a9 gst-plugins-mythtv/src/gstmythtvsrc.h --- a/gst-plugins-mythtv/src/gstmythtvsrc.h Mon Dec 18 22:18:57 2006 +0000 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.h Mon Dec 18 22:19:58 2006 +0000 @@ -101,8 +101,6 @@ GstPad *sinkpad; - GstTask *th_read_ahead; - GStaticRecMutex *th_mutex; GByteArray *bytes_queue;