]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix #1591 - timeshift: fix mutex deadlock affecting on-demand mode.
authorAdam Sutton <dev@adamsutton.me.uk>
Mon, 4 Feb 2013 15:19:47 +0000 (15:19 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Mon, 4 Feb 2013 15:27:56 +0000 (15:27 +0000)
Note: there is still an issue I've realised in that writer_flush() could
potentially result in a single packet being written out of order as two
threads have the potential to write. This isn't fatal and is probably
rare enough to ignore at this stage.

src/timeshift/timeshift_reader.c

index d6b11941868223e10dff8a931ff97057ae913752..2e5d1d2f60b3f591aa89e2a833d18f4bff953b10 100644 (file)
@@ -777,7 +777,6 @@ void *timeshift_reader ( void *p )
     /* Flush unwanted */
     } else if (ts->ondemand && cur_file) {
       pthread_mutex_lock(&ts->rdwr_mutex);
-      timeshift_writer_flush(ts);
       timeshift_filemgr_flush(ts, cur_file);
       pthread_mutex_unlock(&ts->rdwr_mutex);
     }