# HG changeset patch # User diego # Date 1266795116 0 # Node ID 6fc02905e992b5bb8ae40d49761e826925685d63 # Parent 77cc0ca2c757584c825d4de5c7bc10a2fc4502bf Add header for v4l2_write() instead of forward declaring it. diff -r 77cc0ca2c757 -r 6fc02905e992 libao2/ao_v4l2.c --- a/libao2/ao_v4l2.c Sun Feb 21 23:30:34 2010 +0000 +++ b/libao2/ao_v4l2.c Sun Feb 21 23:31:56 2010 +0000 @@ -33,6 +33,7 @@ #include "audio_out_internal.h" #include "libaf/af_format.h" #include "libmpdemux/mpeg_packetizer.h" +#include "libvo/vo_v4l2.h" #define MPEG_AUDIO_ID 0x1C0 @@ -144,8 +145,6 @@ static int play (void *data, int len, int flags) { - int v4l2_write (unsigned char *data, int len); - if (ao_data.format != AF_FORMAT_MPEG2) return 0; diff -r 77cc0ca2c757 -r 6fc02905e992 libvo/vo_v4l2.c --- a/libvo/vo_v4l2.c Sun Feb 21 23:30:34 2010 +0000 +++ b/libvo/vo_v4l2.c Sun Feb 21 23:31:56 2010 +0000 @@ -42,6 +42,7 @@ #include "video_out.h" #include "video_out_internal.h" #include "libmpdemux/mpeg_packetizer.h" +#include "vo_v4l2.h" #define DEFAULT_MPEG_DECODER "/dev/video16" #define V4L2_VO_HDR "VO: [v4l2]" diff -r 77cc0ca2c757 -r 6fc02905e992 libvo/vo_v4l2.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libvo/vo_v4l2.h Sun Feb 21 23:31:56 2010 +0000 @@ -0,0 +1,28 @@ +/* + * video output for V4L2 hardware MPEG decoders + * + * Copyright (C) 2007 Benjamin Zores + * + * This file is part of MPlayer. + * + * MPlayer is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * MPlayer is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with MPlayer; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef MPLAYER_VO_V4L2_H +#define MPLAYER_VO_V4L2_H + +int v4l2_write (unsigned char *data, int len); + +#endif /* MPLAYER_VO_V4L2_H */