Skip to content

Commit

Permalink
avdevice/dshow: remove unused variables
Browse files Browse the repository at this point in the history
Signed-off-by: James Almer <[email protected]>
  • Loading branch information
jamrial committed Dec 24, 2021
1 parent a1c4929 commit c147f79
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libavdevice/dshow.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ dshow_get_device_media_types(AVFormatContext *avctx, enum dshowDeviceType devtyp
enum dshowSourceFilterType sourcetype, IBaseFilter *device_filter,
enum AVMediaType **media_types, int *nb_media_types)
{
struct dshow_ctx *ctx = avctx->priv_data;
IEnumPins *pins = 0;
IPin *pin;
int has_audio = 0, has_video = 0;
Expand Down Expand Up @@ -628,7 +627,6 @@ dshow_cycle_devices(AVFormatContext *avctx, ICreateDevEnum *devenum,

static int dshow_get_device_list(AVFormatContext *avctx, AVDeviceInfoList *device_list)
{
struct dshow_ctx *ctx = avctx->priv_data;
ICreateDevEnum *devenum = NULL;
int r;
int ret = AVERROR(EIO);
Expand Down Expand Up @@ -1170,7 +1168,6 @@ dshow_cycle_pins(AVFormatContext *avctx, enum dshowDeviceType devtype,
IPin *pin;
int r;

const GUID *mediatype[2] = { &MEDIATYPE_Video, &MEDIATYPE_Audio };
const char *devtypename = (devtype == VideoDevice) ? "video" : "audio only";
const char *sourcetypename = (sourcetype == VideoSourceDevice) ? "video" : "audio";

Expand Down

0 comments on commit c147f79

Please sign in to comment.