get_media_devices: fix device enumberation routines
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 28 May 2011 19:40:57 +0000 (16:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 28 May 2011 19:49:01 +0000 (16:49 -0300)
commit08afbbd4add54e1db43b46f1b6faf0dd6f7e1449
treeb1ecb66d2701f5938093f9a1719ce70f29e3900c
parentcf4dfd6b5b38996707eb48655ed52cd053e50dec
get_media_devices: fix device enumberation routines

When called inside a loop, the get_* functions weren't working.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
utils/libmedia_dev/get_media_devices.c
utils/libmedia_dev/get_media_devices.h