device/output: fix infinite iterator loop
This commit is contained in:
parent
1fc9e03d6f
commit
c8fd7d411f
@ -17,6 +17,8 @@ impl Iterator for AudioIter {
|
||||
None
|
||||
}
|
||||
else {
|
||||
self.0 = ptr;
|
||||
|
||||
Some(Format::Output(format::Output::wrap(ptr)))
|
||||
}
|
||||
}
|
||||
@ -40,6 +42,8 @@ impl Iterator for VideoIter {
|
||||
None
|
||||
}
|
||||
else {
|
||||
self.0 = ptr;
|
||||
|
||||
Some(Format::Output(format::Output::wrap(ptr)))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user