Skip to content

Not working scan using webcam #51

@SudoSu-bham

Description

@SudoSu-bham

The code at line 1541 stores the video devices detected as a list and at line 1543 the code is using the last element (devices) detected from the list. This is causing it to fail because in my case /dev/video1 is not a valid device. Since the application doesn't seem to check which one of the detected device is working it always fails to start the webcam.

It generate the following error.
on_error(): (gerror=GLib.Error('Device '/dev/video1' is not a capture device.', 'gst-resource-error-quark', 3), debug='../sys/v4l2/v4l2_calls.c(634): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:\nCapabilities: 0x4a00000')
Traceback (most recent call last):

To replicate this
Go to -> Scan -> Scan-Using-Webcam

I am using Debian based Linux system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions