]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
ddci: remove useless retyping
authorJaroslav Kysela <perex@perex.cz>
Wed, 13 Dec 2017 11:46:35 +0000 (12:46 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 13 Dec 2017 16:01:41 +0000 (17:01 +0100)
src/input/mpegts/linuxdvb/linuxdvb_ddci.c

index aa9ea8be451fc67eecee81f290afcb6e95cc7fb3..8ce293fe9d986d1b6f51d1e390c05acfed0d22c6 100644 (file)
@@ -457,10 +457,10 @@ linuxdvb_ddci_wr_thread_stop ( linuxdvb_ddci_wr_thread_t *ddci_wr_thread )
   /* See function linuxdvb_ddci_wr_thread_buffer_put why we lock here.
    */
 
-  pthread_mutex_lock(&(LDDCI_TO_THREAD(ddci_wr_thread))->lddci_thread_lock);
+  pthread_mutex_lock(&ddci_wr_thread->lddci_thread_lock);
   linuxdvb_ddci_thread_stop(LDDCI_TO_THREAD(ddci_wr_thread));
   linuxdvb_ddci_send_buffer_clear(&ddci_wr_thread->lddci_send_buffer);
-  pthread_mutex_unlock(&(LDDCI_TO_THREAD(ddci_wr_thread))->lddci_thread_lock);
+  pthread_mutex_unlock(&ddci_wr_thread->lddci_thread_lock);
 }
 
 static inline void
@@ -475,10 +475,10 @@ linuxdvb_ddci_wr_thread_buffer_put
    * linuxdvb_ddci_wr_thread_start will then re-init the queue and the wrongly
    * stored data is lost -> memory leak.
    */
-  pthread_mutex_lock(&(LDDCI_TO_THREAD(ddci_wr_thread))->lddci_thread_lock);
+  pthread_mutex_lock(&ddci_wr_thread->lddci_thread_lock);
   if (linuxdvb_ddci_thread_running(LDDCI_TO_THREAD(ddci_wr_thread)))
     linuxdvb_ddci_send_buffer_put(&ddci_wr_thread->lddci_send_buffer, tsb, len );
-  pthread_mutex_unlock(&(LDDCI_TO_THREAD(ddci_wr_thread))->lddci_thread_lock);
+  pthread_mutex_unlock(&ddci_wr_thread->lddci_thread_lock);
 }