summaryrefslogtreecommitdiff
path: root/libavdevice/dshow.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2011-09-02 01:33:24 -0300
committerMichael Niedermayer <michaelni@gmx.at>2011-09-06 21:13:06 +0200
commit5e77dc2ea76f1c3ba34866ec0ba119826b650559 (patch)
tree676aac01762a752c6388378bd001924041b7901a /libavdevice/dshow.c
parent0a333001a216d79b1b74f6620d66be188162f872 (diff)
dshow: remove some unused code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/dshow.c')
-rw-r--r--libavdevice/dshow.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 348fda6ecd..99135693e2 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -19,8 +19,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "libavformat/timefilter.h"
-
#include "avdevice.h"
#include "dshow.h"
@@ -42,8 +40,6 @@ struct dshow_ctx {
unsigned int video_frame_num;
IMediaControl *control;
-
- TimeFilter *timefilter;
};
static enum PixelFormat dshow_pixfmt(DWORD biCompression, WORD biBitCount)
@@ -223,7 +219,7 @@ dshow_open_device(AVFormatContext *avctx, ICreateDevEnum *devenum,
const char *device_name = ctx->device_name[devtype];
int ret = AVERROR(EIO);
IPin *pin;
- int r, i;
+ int r;
const GUID *device_guid[2] = { &CLSID_VideoInputDeviceCategory,
&CLSID_AudioInputDeviceCategory };
@@ -287,7 +283,6 @@ fail1:
goto error;
}
- i = 0;
while (IEnumPins_Next(pins, 1, &pin, NULL) == S_OK && !device_pin) {
IKsPropertySet *p = NULL;
IEnumMediaTypes *types;