diff options
author | Mike Isely <isely@pobox.com> | 2008-03-30 15:36:31 -0500 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2008-03-30 15:36:31 -0500 |
commit | 47e0450c02ef07e690c8b339360de5b4e606d2c2 (patch) | |
tree | 8409eed5f57853f2d6bac534e2bbfeb4b111b3cd /linux/drivers/media/video/pvrusb2/pvrusb2-dvb.h | |
parent | 3a3074c5c7fd26512743c0763c342e365e2c7387 (diff) | |
download | mediapointer-dvb-s2-47e0450c02ef07e690c8b339360de5b4e606d2c2.tar.gz mediapointer-dvb-s2-47e0450c02ef07e690c8b339360de5b4e606d2c2.tar.bz2 |
pvrusb2-dvb: Fix stuck thread on streaming abort
From: Mike Isely <isely@pobox.com>
If the device fails to stream, the feed thread will block forever
waiting for buffers. But while in this state it was not looking for
an exit condition from the driver DVB interface. This caused the
thread to jam. Implement a new stop flag (which will be set
appropriately) to tell the thread to stop.
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-dvb.h')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-dvb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-dvb.h b/linux/drivers/media/video/pvrusb2/pvrusb2-dvb.h index 04209db87..a45fa5abd 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-dvb.h +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-dvb.h @@ -32,6 +32,7 @@ struct pvr2_dvb_adapter { unsigned int stream_run:1; wait_queue_head_t buffer_wait_data; + int feed_thread_stop; char *buffer_storage[PVR2_DVB_BUFFER_COUNT]; }; |