mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
Xv: fix segfault on shutdown
Protect against adaptor having NULL port list in XvStopAdaptors() Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -351,7 +351,7 @@ XvStopAdaptors(DrawablePtr pDrawable)
|
||||
XvPortPtr pp = pa->pPorts;
|
||||
int np = pa->nPorts;
|
||||
|
||||
while (np--) {
|
||||
while ((np--) && (pp)) {
|
||||
if (pp->pDraw == pDrawable) {
|
||||
XvdiSendVideoNotify(pp, pDrawable, XvPreempted);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user