diff options
author | Sean Paul <seanpaul@chromium.org> | 2015-09-04 01:33:06 -0400 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2015-09-04 01:33:06 -0400 |
commit | 2143d3bc9da37525cacd432cd51b6e4f459c47a2 (patch) | |
tree | 03e03bef2d9f9dbf902ebd84b93034a4826bbec7 /drmdisplaycomposition.cpp | |
parent | 3c32ca686cfb7bc7384e6c675610b5898d4c7ba0 (diff) | |
download | drm_hwcomposer-2143d3bc9da37525cacd432cd51b6e4f459c47a2.tar.gz |
drm_hwcomposer: Allow NULL crtcs in display composition
In cases where we have displays which do not have a mode,
the crtc will be NULL. This shouldn't fail the composition
initialization.
Change-Id: I1a6acb72cd3f614b5a7c854ba61be1539efa4bea
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'drmdisplaycomposition.cpp')
-rw-r--r-- | drmdisplaycomposition.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drmdisplaycomposition.cpp b/drmdisplaycomposition.cpp index c989494..465a318 100644 --- a/drmdisplaycomposition.cpp +++ b/drmdisplaycomposition.cpp @@ -102,7 +102,7 @@ DrmDisplayComposition::~DrmDisplayComposition() { int DrmDisplayComposition::Init(DrmResources *drm, DrmCrtc *crtc, Importer *importer) { drm_ = drm; - crtc_ = crtc; + crtc_ = crtc; // Can be NULL if we haven't modeset yet importer_ = importer; int ret = hw_get_module(GRALLOC_HARDWARE_MODULE_ID, |