[Openchrome-users] MPlayer-1.0rc2 XvMC patch

Andrey Melentyev andrey.melentyev
Fri Nov 2 03:29:39 PDT 2007


It seems that some recent changes break MPlayer compilation with XvMC
patch since at least r24929. Here's error log:

i686-pc-linux-gnu-gcc -I../libavcodec -I../libavformat
-Wdisabled-optimization -Wno-pointer-sign
-Wdeclaration-after-statement -I. -I.. -I../libavutil -Wall
-Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native
-mtune=native -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
-DHAVE_CONFIG_H -I/usr/X11R6/include -I/usr/include/SDL  -D_REENTRANT
-I/usr/include/freetype2 -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12     -c -o vd_ffmpeg.o vd_ffmpeg.c
i686-pc-linux-gnu-gcc -I../libavcodec -I../libavformat
-Wdisabled-optimization -Wno-pointer-sign
-Wdeclaration-after-statement -I. -I.. -I../libavutil -Wall
-Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native
-mtune=native -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
-DHAVE_CONFIG_H -I/usr/X11R6/include -I/usr/include/SDL  -D_REENTRANT
-I/usr/include/freetype2 -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12     -c -o demux_mkv.o demux_mkv.c
In file included from demux_mkv.c:34:
../loader/qtx/qtxsdk/components.h: In function 'dump_CodecDecompressParams':
../loader/qtx/qtxsdk/components.h:724: warning: initialization from
incompatible pointer type
../loader/qtx/qtxsdk/components.h:726: warning: format '%.4s' expects
type 'char *', but argument 3 has type 'unsigned int *'
../loader/qtx/qtxsdk/components.h:734: warning: format '%p' expects
type 'void *', but argument 2 has type 'ICMProgressProcRecord'
../loader/qtx/qtxsdk/components.h:734: warning: format '%p' expects
type 'void *', but argument 3 has type 'ICMCompletionProcRecord'
../loader/qtx/qtxsdk/components.h:734: warning: format '%p' expects
type 'void *', but argument 4 has type 'ICMDataProcRecord'
demux_mkv.c: In function 'add_cluster_position':
demux_mkv.c:257: warning: passing argument 1 of 'grow_array' from
incompatible pointer type
vd_ffmpeg.c: In function 'init':
vd_ffmpeg.c:272: error: 'sh_video_t' has no member named 'video_out'
vd_ffmpeg.c:274: error: 'sh_video_t' has no member named 'video_out'
vd_ffmpeg.c:277: warning: assignment discards qualifiers from pointer
target type
vd_ffmpeg.c:293: warning: assignment from incompatible pointer type
vd_ffmpeg.c:408: warning: 'AVPaletteControl' is deprecated
vd_ffmpeg.c: In function 'get_buffer':
vd_ffmpeg.c:639: warning: assignment from incompatible pointer type
vd_ffmpeg.c: In function 'decode':
vd_ffmpeg.c:770: warning: assignment from incompatible pointer type
vd_ffmpeg.c:784: warning: pointer of type 'void *' used in arithmetic
vd_ffmpeg.c:792: warning: pointer of type 'void *' used in arithmetic
vd_ffmpeg.c: In function 'get_format':
vd_ffmpeg.c:940: warning: assignment from incompatible pointer type
vd_ffmpeg.c: In function 'mc_get_buffer':
vd_ffmpeg.c:974: warning: comparison of distinct pointer types lacks a cast
demux_mkv.c: In function 'demux_mkv_read_cues':
demux_mkv.c:1281: warning: passing argument 1 of 'grow_array' from
incompatible pointer type
demux_mkv.c: In function 'demux_mkv_read_attachments':
demux_mkv.c:1470: warning: passing argument 1 of 'grow_array' from
incompatible pointer type
make[1]: *** [vd_ffmpeg.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/media-video/mplayer-1.0_rc2_p24929/work/mplayer-1.0_rc2_p24929/libmpcodecs'
demux_mkv.c: In function 'demux_mkv_open_video':
demux_mkv.c:1805: warning: pointer of type 'void *' used in arithmetic
make: *** [libmpcodecs/libmpcodecs.a] Error 2

Does anyone have a clue?


On 10/11/07, Timothy Lee <timothy.lee at siriushk.com> wrote:
> Rikz wrote:
> > I wonder if somebody's already made a patch for recently released
> > MPlayer-1.0rc2? Old patch fails with lots of rejects.
> >
> I've made a patch for the lastest SVN snapshot, which should also work
> for rc2.
>
> Regards,
> Timothy
>
>


-- 
-wbr,
Andrey Melentyev
andrey.melentyev at gmail.com




More information about the Openchrome-users mailing list