diff options
author | darron@kewl.org <darron@kewl.org> | 2008-10-30 07:46:42 +0000 |
---|---|---|
committer | darron@kewl.org <darron@kewl.org> | 2008-10-30 07:46:42 +0000 |
commit | 03fa826b897d7f40fcdd50ee7b76a3077ea949c1 (patch) | |
tree | 0769062f7fa170cbba904ca6dd3c0ccfd5f64a96 | |
parent | 103cb4e1e8762fb39d1121e269f758db45071e13 (diff) | |
download | mediapointer-dvb-s2-03fa826b897d7f40fcdd50ee7b76a3077ea949c1.tar.gz mediapointer-dvb-s2-03fa826b897d7f40fcdd50ee7b76a3077ea949c1.tar.bz2 |
cx88-blackbird: bugfix: cx88-blackbird-poll-fix
From: Frederic CAND <frederic.cand@anevia.com>
Starts encoder not only on a read call but also on a poll command.
Signed-off-by: Frederic CAND <frederic.cand@anevia.com>
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-blackbird.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-blackbird.c b/linux/drivers/media/video/cx88/cx88-blackbird.c index 3f33cb600..eca841bef 100644 --- a/linux/drivers/media/video/cx88/cx88-blackbird.c +++ b/linux/drivers/media/video/cx88/cx88-blackbird.c @@ -1177,6 +1177,10 @@ static unsigned int mpeg_poll(struct file *file, struct poll_table_struct *wait) { struct cx8802_fh *fh = file->private_data; + struct cx8802_dev *dev = fh->dev; + + if (!dev->mpeg_active) + blackbird_start_codec(file, fh); return videobuf_poll_stream(file, &fh->mpegq, wait); } |