1. 11 Sep, 2011 11 commits
  2. 09 Sep, 2011 2 commits
    • Michael Krufky's avatar
      [media] dvb-usb: improve sanity check of adap->active_fe in dvb_usb_ctrl_feed · 2d04c13a
      Michael Krufky authored
      The check for (adap->active_fe < 0) at the top of dvb_usb_ctrl_feed is a sanity
      check to ensure that adap->active_fe is valid.  Improve that sanity check
      by also checking for (adap->active_fe >= adap->num_frontends_initialized)
      Signed-off-by: default avatarMichael Krufky <mkrufky@kernellabs.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      2d04c13a
    • Michael Krufky's avatar
      [media] dvb-usb: fix streaming failure on channel change · 4b5d01e9
      Michael Krufky authored
      This fixes a bug introduced by a previous changeset entitled,
      [media] dvb-usb: refactor MFE code for individual streaming config per frontend
      
      As reported by Antti Palosaari, This error is shown by VLC when channel changed:
      
      [0x7f1bbc000cd0] dvb access error: DMXSetFilter: failed with -1 (Invalid argument)
      [0x7f1bbc000cd0] dvb access error: DMXSetFilter failed
      [0x7f1bbc32f910] main stream error: cannot pre fill buffer
      
      After my own investigations, I've determined that this error case occurs when
      the application stops streaming but leaves the frontend and dvr devices open.
      A typical example of this usage would be a channel change operation while
      watching live television. The error occurs when the application attempts to
      stream after tuning to the new channel.
      
      To prevent this error, don't set adap->active_fe to -1 unless the application
      closes the device.
      
      Cc: Antti Palosaari <crope@iki.fi>
      Signed-off-by: default avatarMichael Krufky <mkrufky@kernellabs.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      4b5d01e9
  3. 08 Sep, 2011 1 commit
  4. 06 Sep, 2011 26 commits