get_media_devices: fix get_associated_device() logic
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 28 May 2011 20:00:33 +0000 (17:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 28 May 2011 20:00:33 +0000 (17:00 -0300)
commit2992f009419640b185f83158c642dc389187a43d
tree2bf2c53e5b49e46d781944aad8d78301944b9e67
parent33a09bfcae7410a02eee922118353b94c089cc29
get_media_devices: fix get_associated_device() logic

If both last_seek and seek_device is specified and there are multiple
matches, an endless loop were happening.

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