summaryrefslogtreecommitdiff
path: root/dom/media/GraphDriver.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-09-11 14:48:21 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-09-11 14:48:21 +0200
commit9830cd079d8306abc223461190553af64b6fd0ca (patch)
tree58e5f69b7f484f4539db92e5d72eac9df49f2d06 /dom/media/GraphDriver.h
parenta95078a6c6c8ed253c5e279c71462d0d45c1aec3 (diff)
downloaduxp-9830cd079d8306abc223461190553af64b6fd0ca.tar.gz
Bug 1472925 - Keep a strong reference to MediaStreamGraph from GraphDriver.
Diffstat (limited to 'dom/media/GraphDriver.h')
-rw-r--r--dom/media/GraphDriver.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/dom/media/GraphDriver.h b/dom/media/GraphDriver.h
index 411e175d3c..bb4f2689b8 100644
--- a/dom/media/GraphDriver.h
+++ b/dom/media/GraphDriver.h
@@ -210,10 +210,8 @@ protected:
// Time of the end of this graph iteration. This must be accessed while having
// the monitor.
GraphTime mIterationEnd;
- // The MediaStreamGraphImpl that owns this driver. This has a lifetime longer
- // than the driver, and will never be null. Hence, it can be accesed without
- // monitor.
- MediaStreamGraphImpl* mGraphImpl;
+ // The MediaStreamGraphImpl associated with this driver.
+ const RefPtr<MediaStreamGraphImpl> mGraphImpl;
// This enum specifies the wait state of the driver.
enum WaitState {