Skip to content

Commit

Permalink
V4L/DVB (9495): cx88-blackbird: bugfix: cx88-blackbird-poll-fix
Browse files Browse the repository at this point in the history
Starts encoder not only on a read call but also on a poll command.

Signed-off-by: Frederic CAND <frederic.cand@anevia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Frederic CAND authored and Mauro Carvalho Chehab committed Nov 11, 2008
1 parent dec0c46 commit a248237
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/media/video/cx88/cx88-blackbird.c
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,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);
}
Expand Down

0 comments on commit a248237

Please sign in to comment.