Commit 826e43fc authored by Simon Morlat's avatar Simon Morlat
Browse files

fix X11 crash in case of XV grab failed.

parent 6016a3ce
......@@ -103,6 +103,7 @@ static void x11video_init(MSFilter *f){
obj->lsize=def_size; /* the size of the local preview*/
obj->wsize=def_size; /* the size of the window*/
obj->show=TRUE;
obj->port=-1;
f->data=obj;
}
......@@ -300,6 +301,7 @@ static void x11video_unprepare(MSFilter *f){
X11Video *s=(X11Video*)f->data;
if (s->port!=-1){
XvUngrabPort(s->display,s->port,CurrentTime);
s->port=-1;
}
if (s->shminfo.shmaddr!=NULL){
XShmDetach(s->display,&s->shminfo);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment