There were two files, libavformat/grab.c and libavformat/grab_bktr.c declaring
authorDiego Biurrun <diego@biurrun.de>
Tue, 3 Apr 2007 21:09:36 +0000 (21:09 +0000)
committerDiego Biurrun <diego@biurrun.de>
Tue, 3 Apr 2007 21:09:36 +0000 (21:09 +0000)
the video_grab_device_demuxer AVInputFormat.  Use two different names for the
AVInputFormats to reduce confusion and remove ugliness from the Makefile.

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

configure
libavformat/Makefile
libavformat/allformats.c
libavformat/allformats.h
libavformat/grab.c
libavformat/grab_bktr.c

index 50c3570390fce5d8761b90ace13bb77495d5143e..5ea8a5e061297ffa7bb3768892183d71d90e37d9 100755 (executable)
--- a/configure
+++ b/configure
@@ -689,7 +689,8 @@ rtp_muxer_deps="network"
 rtsp_demuxer_deps="network"
 sdp_demuxer_deps="network"
 v4l2_demuxer_deps="v4l2"
-video_grab_device_demuxer_deps_any="v4l bktr"
+video_grab_bktr_demuxer_deps="bktr"
+video_grab_v4l_demuxer_deps="v4l"
 x11_grab_device_demuxer_deps="x11grab"
 
 ffplay_deps="sdl"
index 3d12752c22e0301b25e4ed3171bb13aa4f128603..01e68a9e0ce821077625d7bf6649291fbcbc4b81 100644 (file)
@@ -144,13 +144,8 @@ OBJS-$(CONFIG_LIBNUT_MUXER)              += libnut.o riff.o
 
 OBJS+= framehook.o
 
-ifeq ($(CONFIG_V4L),yes)
-OBJS-$(CONFIG_VIDEO_GRAB_DEVICE_DEMUXER) += grab.o
-endif
-
-ifeq ($(CONFIG_BKTR),yes)
-OBJS-$(CONFIG_VIDEO_GRAB_DEVICE_DEMUXER) += grab_bktr.o
-endif
+OBJS-$(CONFIG_VIDEO_GRAB_V4L_DEMUXER)    += grab.o
+OBJS-$(CONFIG_VIDEO_GRAB_BKTR_DEMUXER)   += grab_bktr.o
 
 EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) \
              -lavcodec$(BUILDSUF) -L$(BUILD_ROOT)/libavcodec $(EXTRALIBS)
index 8534a18f69876c1ac1e1a29502e74a278da229f1..09e3f0d756cce461a7f1578f52e926a90dbe20a0 100644 (file)
@@ -147,7 +147,8 @@ void av_register_all(void)
     REGISTER_DEMUXER (TTA, tta);
     REGISTER_DEMUXER (V4L2, v4l2);
     REGISTER_DEMUXER (VC1, vc1);
-    REGISTER_DEMUXER (VIDEO_GRAB_DEVICE, video_grab_device);
+    REGISTER_DEMUXER (VIDEO_GRAB_BKTR, video_grab_bktr);
+    REGISTER_DEMUXER (VIDEO_GRAB_V4L, video_grab_v4l);
     REGISTER_DEMUXER (VMD, vmd);
     REGISTER_MUXDEMUX(VOC, voc);
     REGISTER_MUXDEMUX(WAV, wav);
index 286a7d584cd21ebc6c4cc11d4bf839095362dc5a..e82ab80f5a85e4aa1b13acbeba1133969f5ed43d 100644 (file)
@@ -99,7 +99,8 @@ extern AVInputFormat tiertexseq_demuxer;
 extern AVInputFormat tta_demuxer;
 extern AVInputFormat v4l2_demuxer;
 extern AVInputFormat vc1_demuxer;
-extern AVInputFormat video_grab_device_demuxer;
+extern AVInputFormat video_grab_bktr_demuxer;
+extern AVInputFormat video_grab_v4l_demuxer;
 extern AVInputFormat vmd_demuxer;
 extern AVInputFormat voc_demuxer;
 extern AVInputFormat wav_demuxer;
index 5e778ecc061dd78ee40c29a059191ee3572de0de..8fe3997bca7a4763c07c8f9fca6f8269634c4b2e 100644 (file)
@@ -375,7 +375,7 @@ static int grab_read_close(AVFormatContext *s1)
     return 0;
 }
 
-AVInputFormat video_grab_device_demuxer = {
+AVInputFormat video_grab_v4l_demuxer = {
     "video4linux",
     "video grab",
     sizeof(VideoData),
index ec0c645070fe2c7fcd5bc456bd43766e985ce2e6..e40082fcc27dcb54d1be2e2167cb08e55b19b092 100644 (file)
@@ -308,7 +308,7 @@ static int grab_read_close(AVFormatContext *s1)
     return 0;
 }
 
-AVInputFormat video_grab_device_demuxer = {
+AVInputFormat video_grab_bktr_demuxer = {
     "bktr",
     "video grab",
     sizeof(VideoData),