[xiph-commits] r8621 - trunk/oggdsf/src/tools/mod_oggchef
ozone at motherfish-iii.xiph.org
ozone at motherfish-iii.xiph.org
Wed Jan 5 05:21:40 PST 2005
Author: ozone
Date: 2005-01-05 05:21:39 -0800 (Wed, 05 Jan 2005)
New Revision: 8621
Modified:
trunk/oggdsf/src/tools/mod_oggchef/mod_oggchef.cpp
Log:
oggdsf mod_oggchef:
* Don't handle requests which weren't for us
Modified: trunk/oggdsf/src/tools/mod_oggchef/mod_oggchef.cpp
===================================================================
--- trunk/oggdsf/src/tools/mod_oggchef/mod_oggchef.cpp 2005-01-05 12:43:34 UTC (rev 8620)
+++ trunk/oggdsf/src/tools/mod_oggchef/mod_oggchef.cpp 2005-01-05 13:21:39 UTC (rev 8621)
@@ -152,6 +152,11 @@
{
apr_uri_t *locURI = &(inRequest->parsed_uri);
+ // Ignore the request if it's not directed at this module
+ if (strcmp(inRequest->handler, "oggchef")) {
+ return DECLINED;
+ }
+
// Grab the local filename (which is determined by the requested URL)
string locFilename = inRequest->filename;
@@ -192,11 +197,12 @@
"Couldn't identify filename %s", locFilename.c_str());
}
- locRecomposer->recomposeStreamFrom(locRequestedStartTime, locOutputMIMETypes);
+ if (locRecomposer) {
+ locRecomposer->recomposeStreamFrom(locRequestedStartTime, locOutputMIMETypes);
+ delete locRecomposer;
+ }
- // Clean up
delete locOutputMIMETypes;
- delete locRecomposer;
return OK;
}
More information about the commits
mailing list