/*****************************************************************************
* buffer.c : DirectMedia Object decoder module for vlc
*****************************************************************************
/*****************************************************************************
* buffer.c : DirectMedia Object decoder module for vlc
*****************************************************************************
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/*****************************************************************************
* Preamble
*****************************************************************************/
*****************************************************************************/
/*****************************************************************************
* Preamble
*****************************************************************************/
static long STDCALL SetLength( IMediaBuffer *This, uint32_t cbLength )
{
CMediaBuffer *p_mb = (CMediaBuffer *)This;
static long STDCALL SetLength( IMediaBuffer *This, uint32_t cbLength )
{
CMediaBuffer *p_mb = (CMediaBuffer *)This;
if( pcbLength ) *pcbLength = p_mb->p_block->i_buffer;
return S_OK;
}
CMediaBuffer *CMediaBufferCreate( block_t *p_block, int i_max_size,
if( pcbLength ) *pcbLength = p_mb->p_block->i_buffer;
return S_OK;
}
CMediaBuffer *CMediaBufferCreate( block_t *p_block, int i_max_size,