Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mpeg2] Segmentation fault during encoding problem



Hi,

I found one possible reason for your problems.
If you are using the 2.4.3 kernel (or one of the pre-patches), you 
should change the kfir_template structure in kfir.c to:

/* template for video_device-structure */
static struct video_device kfir_template = {
name:         "Kfir",
type:         VID_TYPE_MPEG_ENCODER,  
hardware:     VID_HARDWARE_SAA7146,  //FIXME: need to get VID_HARDWARE_KFIR registered
open:         kfir_open,
close:        kfir_close,
read:         kfir_read,
write:        kfir_write,		
poll:	      kfir_poll,
ioctl:	      kfir_ioctl,
mmap:         kfir_mmap,
initialize:   kfir_init_done,
priv:         NULL,
busy:         0,
minor:        0,
};


The new videodev structure contains the new entry "owner" which comes
before "name". By giving the explicit names in the structure 
it should be compatible to all versions.

IŽll change the CVS version accordingly.


Ralph



Home | Main Index | Thread Index