Ticket #6691: r20802_porting.patch

File r20802_porting.patch, 2.5 KB (added by anonymous, 11 years ago)
  • libs/libmythmpeg2/cpu_accel.c

     
    127127}
    128128#endif /* ARCH_X86 */
    129129
    130 #if defined(ACCEL_DETECT) && (defined(ARCH_PPC) || defined(ARCH_SPARC))
     130#if defined(ACCEL_DETECT) && (ARCH_PPC || ARCH_SPARC)
    131131#include <signal.h>
    132132#include <setjmp.h>
    133133
  • libs/libmythtv/RingBuffer.cpp

     
    255255                else
    256256                {
    257257                    lseek(fd2, 0, SEEK_SET);
    258                     if (HAVE_POSIX_FADVISE)
     258                    #if (HAVE_POSIX_FADVISE)
    259259                        posix_fadvise(fd2, 0, 0, POSIX_FADV_SEQUENTIAL);
    260 
     260                    #endif
    261261                    openAttempts = 0;
    262262                    break;
    263263                }
  • libs/libmythtv/ThreadedFileWriter.cpp

     
    349349{
    350350    if (fd >= 0)
    351351    {
    352         if (HAVE_SYNC_FILE_RANGE)
     352        #if (HAVE_SYNC_FILE_RANGE)
    353353        {
    354354            uint64_t write_position;
    355355
     
    365365                m_file_sync = write_position;
    366366            }
    367367        }
    368         else if (HAVE_FDATASYNC)
     368        #elif (HAVE_FDATASYNC)
    369369            fdatasync(fd);
    370         else
     370        #else
    371371            fsync(fd);
     372        #endif
    372373    }
    373374}
    374375
  • filters/greedyhdeint/color.h

     
    11#ifndef _COLOR_H_
    22#define _COLOR_H_
    33
    4 void (*yv12_to_yuy2)
    5   (const unsigned char *y_src, int y_src_pitch,
    6    const unsigned char *u_src, int u_src_pitch,
    7    const unsigned char *v_src, int v_src_pitch,
    8    unsigned char *yuy2_map, int yuy2_pitch,
    9    int width, int height, int progressive);
    10 
    11 void (*yuy2_to_yv12)
    12   (const unsigned char *yuy2_map, int yuy2_pitch,
    13    unsigned char *y_dst, int y_dst_pitch,
    14    unsigned char *u_dst, int u_dst_pitch,
    15    unsigned char *v_dst, int v_dst_pitch,
    16    int width, int height);
    17 
    184void init_yuv_conversion(void);
    195
    206void apply_chroma_filter( uint8_t *data, int stride, int width, int height );