Define device_try_init() as static in libavdevice/v4l2.c.
authorReinhard Tartler <siretart@tauware.de>
Sun, 3 Jan 2010 10:43:36 +0000 (10:43 +0000)
committerLuca Abeni <lucabe72@email.it>
Sun, 3 Jan 2010 10:43:36 +0000 (10:43 +0000)
Patch by Reinhard Tartler (siretart AT tauware DOT de).

Originally committed as revision 21004 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavdevice/v4l2.c

index 9ab42522f37dd2048e93155d5ac0e049b0195496..a9ffe3acd62d6bf34cb222c21e18b20bf504de93 100644 (file)
@@ -546,11 +546,11 @@ static int v4l2_set_parameters( AVFormatContext *s1, AVFormatParameters *ap )
     return 0;
 }
 
-uint32_t device_try_init(AVFormatContext *s1,
-                         const AVFormatParameters *ap,
-                         int *width,
-                         int *height,
-                         enum CodecID *codec_id)
+static uint32_t device_try_init(AVFormatContext *s1,
+                                const AVFormatParameters *ap,
+                                int *width,
+                                int *height,
+                                enum CodecID *codec_id)
 {
     uint32_t desired_format = fmt_ff2v4l(ap->pix_fmt, ap->video_codec_id);