Re: Embedding mp3 - Answered.
[email protected] (Wolfgang Hamann) Fri, 2 Jan 2004 07:39:31 +0100 (CET)
| Newsgroups | gmane.comp.web.ming.general |
|---|---|
| Message-ID | <wolfgang-1040102073929.A0129986@loopback> |
Hi,
can you try whether replacing getInput() [file php_ext/ming.c] by this code works:
-----------
static SWFInput getInput(zval **zfile TSRMLS_DC)
{
FILE *file;
void *what;
int type;
SWFInput input;
what = zend_fetch_resource(zfile TSRMLS_CC, -1, "File-Handle", &type, 1, php_file_le_stream());
if (php_stream_cast((php_stream*)what, PHP_STREAM_AS_STDIO, (void *) &file, REPORT_ERRORS) != SUCCESS) {
return NULL;
}
input = newSWFInput_file(file);
zend_list_addref(Z_LVAL_PP(zfile));
zend_list_addref(zend_list_insert(input, le_swfinputp));
return input;
}
----------
Wolfgang