record: ifdef out RecordExtensionInit and print a warning to the log.
The RECORD extension is currently broken. By ifdef'ing out the content of RecordExtensionInit the extension isn't added to the server's internal list and it does not get advertised to the client. Clients can thus fail gracefully with a "extension not supported" instead of waiting forever for events that never arrive. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
4e9b2938cd
commit
0217d0370c
|
@ -2865,6 +2865,13 @@ RecordCloseDown(ExtensionEntry *extEntry)
|
|||
void
|
||||
RecordExtensionInit(void)
|
||||
{
|
||||
/* FIXME Record is currently broken. Dont initialize it so that clients
|
||||
* that require it can bail out correctly rather than waiting for stuff
|
||||
* that'll never happen */
|
||||
ErrorF("record: RECORD extension enabled at configure time.\n");
|
||||
ErrorF("record: This extension is known to be broken, disabling extension now..\n");
|
||||
ErrorF("record: http://bugs.freedesktop.org/show_bug.cgi?id=20500\n");
|
||||
#if 0
|
||||
ExtensionEntry *extentry;
|
||||
|
||||
RTContext = CreateNewResourceType(RecordDeleteContext);
|
||||
|
@ -2887,5 +2894,6 @@ RecordExtensionInit(void)
|
|||
}
|
||||
RecordErrorBase = extentry->errorBase;
|
||||
|
||||
#endif
|
||||
} /* RecordExtensionInit */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user