dshow: fix return code when opening device
authorRamiro Polla <ramiro.polla@gmail.com>
Thu, 6 Dec 2012 04:32:47 +0000 (02:32 -0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 8 Dec 2012 20:44:30 +0000 (21:44 +0100)
commitf2c49da9ac486597a240cf62d23b8a85eb6fe6e9
tree913d914185a39342485956f66a8a7654ad009812
parent129d73715084620f52dd507aeab29eb8e1da490e
dshow: fix return code when opening device

Successfully opening a device altered the ret variable, making the function
not cleanup properly and return an incorrect value for errors that happened
afterwards.

Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/dshow.c