Don't fire callbacks after we end the subscription
This commit is contained in:
parent
91c96559fa
commit
f36e2841bf
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ void FrameSubscriber::OnFrameDelivered(
|
||||||
scoped_refptr<media::VideoFrame> frame, base::TimeTicks, bool result) {
|
scoped_refptr<media::VideoFrame> frame, base::TimeTicks, bool result) {
|
||||||
pending_frames--;
|
pending_frames--;
|
||||||
|
|
||||||
if (!result || RequestDestruct())
|
if (RequestDestruct() || subscriber_ == NULL || !result)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
v8::Locker locker(isolate_);
|
v8::Locker locker(isolate_);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue