mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
Fixes to allow plugin to build with Forte.
Original commit message from CVS: Fixes to allow plugin to build with Forte.
This commit is contained in:
parent
6dd1ca288f
commit
a3dff66217
4 changed files with 11 additions and 3 deletions
|
@ -4,6 +4,9 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef __inline__
|
||||||
|
#define __inline__ inline
|
||||||
|
#endif
|
||||||
|
|
||||||
static __inline__ int intmax( register int x, register int y )
|
static __inline__ int intmax( register int x, register int y )
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#include "videostrm.hh"
|
#include "videostrm.hh"
|
||||||
#include "outputstream.hh"
|
#include "outputstream.hh"
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
#include "glib.h"
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************
|
/*******************************************************************
|
||||||
|
@ -1085,9 +1086,11 @@ OutputStream::OutputDVDPriv2 ()
|
||||||
{
|
{
|
||||||
uint8_t *packet_size_field;
|
uint8_t *packet_size_field;
|
||||||
uint8_t *index;
|
uint8_t *index;
|
||||||
uint8_t sector_buf[sector_size];
|
uint8_t *sector_buf;
|
||||||
unsigned int tozero;
|
unsigned int tozero;
|
||||||
|
|
||||||
|
sector_buf = g_new0(uint8_t, sector_size);
|
||||||
|
|
||||||
assert (sector_size == 2048);
|
assert (sector_size == 2048);
|
||||||
PS_Stream::BufferSectorHeader (sector_buf, pack_header_ptr, &sys_header, index);
|
PS_Stream::BufferSectorHeader (sector_buf, pack_header_ptr, &sys_header, index);
|
||||||
PS_Stream::BufferPacketHeader (index, PRIVATE_STR_2, 2, // MPEG 2
|
PS_Stream::BufferPacketHeader (index, PRIVATE_STR_2, 2, // MPEG 2
|
||||||
|
@ -1109,6 +1112,8 @@ OutputStream::OutputDVDPriv2 ()
|
||||||
PS_Stream::BufferPacketSize (packet_size_field, index);
|
PS_Stream::BufferPacketSize (packet_size_field, index);
|
||||||
|
|
||||||
WriteRawSector (sector_buf, sector_size);
|
WriteRawSector (sector_buf, sector_size);
|
||||||
|
|
||||||
|
g_free(sector_buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
AUStream::AUStream ():
|
AUStream::AUStream ():
|
||||||
cur_rd (0), cur_wr (0), totalctr (0), size (0), buf (0)
|
cur_rd (0), cur_wr (0), totalctr (0), size (0), buf (0)
|
||||||
{
|
{
|
||||||
buf = new (Aunit *)[AUStream::BUF_SIZE];
|
buf = new (Aunit **)[AUStream::BUF_SIZE];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ y4m_ratio_reduce (y4m_ratio_t * r)
|
||||||
int
|
int
|
||||||
y4m_parse_ratio (y4m_ratio_t * r, const char *s)
|
y4m_parse_ratio (y4m_ratio_t * r, const char *s)
|
||||||
{
|
{
|
||||||
char *t = strchr (s, ':');
|
char *t = (char *) strchr (s, ':');
|
||||||
|
|
||||||
if (t == NULL)
|
if (t == NULL)
|
||||||
return Y4M_ERR_RANGE;
|
return Y4M_ERR_RANGE;
|
||||||
|
|
Loading…
Reference in a new issue