and free overlays after swap chain is released
GST_DEBUG_OBJECT (sink, "D3D surface released. Ref count: %d", ref_count);
}
+ gst_d3d9_overlay_free (sink);
ret = TRUE;
end:
LOCK_CLASS (sink, klass);
+ d3d_class_display_device_destroy (klass);
if (klass->d3d.d3d) {
int ref_count;
ref_count = IDirect3D9_Release (klass->d3d.d3d);
}
if (reged)
UnregisterClass (WndClass.lpszClassName, WndClass.hInstance);
- d3d_class_display_device_destroy (klass);
return ret;
}
GST_DEBUG_OBJECT (bsink, "Stop() called");
d3d_stop (sink);
- gst_d3d9_overlay_free (sink);
d3d_class_destroy (sink);
return TRUE;