(!1916) 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:
parent
e2c457756b
commit
adcf95b8b5
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue