aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/video/pvrusb2/pvrusb2-dvb.h
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2008-03-30 20:36:31 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 14:09:48 -0300
commit07b80264c3ede47593e83189cce82b31100053f6 (patch)
tree1565d13b5c6f77fa700e88df3144cbb4a65a51f7 /drivers/media/video/pvrusb2/pvrusb2-dvb.h
parent087886eb111fde9659d69c030ea618b3c242e39c (diff)
V4L/DVB (7708): pvrusb2-dvb: Fix stuck thread on streaming abort
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> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-dvb.h')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-dvb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-dvb.h b/drivers/media/video/pvrusb2/pvrusb2-dvb.h
index 884ff916a35..2dd0d4ef22a 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-dvb.h
+++ b/drivers/media/video/pvrusb2/pvrusb2-dvb.h
@@ -28,6 +28,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];
};