# HG changeset patch # User diego # Date 1284215832 0 # Node ID 9031c664ed05a3f19a8e78f6d3cc8edd0e0217cb # Parent 6e056d82cc2ca5ec1a617c56c0f7fe5a7833b376 Move v4l2_fd extern declaration to vo_v4l2.h, where it belongs. diff -r 6e056d82cc2c -r 9031c664ed05 libao2/ao_v4l2.c --- a/libao2/ao_v4l2.c Sat Sep 11 14:31:13 2010 +0000 +++ b/libao2/ao_v4l2.c Sat Sep 11 14:37:12 2010 +0000 @@ -61,8 +61,6 @@ static int init (int rate, int channels, int format, int flags) { - extern int v4l2_fd; - if (v4l2_fd < 0) return 0; diff -r 6e056d82cc2c -r 9031c664ed05 libvo/vo_v4l2.h --- a/libvo/vo_v4l2.h Sat Sep 11 14:31:13 2010 +0000 +++ b/libvo/vo_v4l2.h Sat Sep 11 14:37:12 2010 +0000 @@ -23,6 +23,8 @@ #ifndef MPLAYER_VO_V4L2_H #define MPLAYER_VO_V4L2_H +extern int v4l2_fd; + int v4l2_write (unsigned char *data, int len); #endif /* MPLAYER_VO_V4L2_H */