Re: gp_camera_capture_preview suddenly unsupported?

Alan Corey <[email protected]>
Newsgroups gmane.comp.multimedia.gphoto.user
Message-ID <CAOh3dDbmBTegdJVNN2taX+kYOE85yGp_p6vLA4BV-1s+aF=f3A@mail.gmail.com>
Yeah, OK, I can get something like:

Multiple cameras (3) found.
0       Motorola Moto G (ID1)
1       Canon Powershot S70 (PTP mode)
2       Nikon DSC D5200

Now I'm trying to figure out the simplest way to get from a list to a
single camera.  By using a name?  Seems like the list should have some
binary identifier or contexts or something: Camera or GPContext maybe
as one of the fields.  Then you could have a getCamera function that
returned that given an index.  When you do a list_unref it goes away.
It doesn't seem like there's a bridge between a list and a single
camera, like they come from different eras.


On 4/26/18, Marcus Meissner <[email protected]> wrote:
> On Wed, Apr 25, 2018 at 10:00:21PM -0400, Alan Corey wrote:
>> Something changed somewhere.  I was working with libgphoto2, the same
>> program, the same build even, when all of a sudden it stopped working.
>> I get a -6 error suddenly.  I've reset the camera, rebooted the
>> computer, tried a different camera.  I was plugging away squashing
>> bugs, making progress.  I'm using the preview images to do motion
>> detection by detecting changes.  Before the same program worked with
>> my old Canon S70 and my Nikon D5200, which was really convenient, now
>> it doesn't work with either.
>>
>> I suppose I should look at the code and see where a -6 comes from.
>
> What is your camera, what does --auto-detect show?
>
> Ciao, Marcus
>


-- 
-------------
No, I won't  call it "climate change", do you have a "reality problem"? - AB1JX
Impeach  Impeach  Impeach  Impeach  Impeach  Impeach  Impeach  Impeach

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.