[FFmpeg-cvslog] avdevice/dshow: remove unused variables

James Almer git at videolan.org
Fri Dec 24 19:27:59 EET 2021


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Dec 24 14:23:01 2021 -0300| [c147f7962c2a6634608531bdd14052e836bc860c] | committer: James Almer

avdevice/dshow: remove unused variables

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c147f7962c2a6634608531bdd14052e836bc860c
---

 libavdevice/dshow.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 671393f468..0929ad9316 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -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;
@@ -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);
@@ -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";
 



More information about the ffmpeg-cvslog mailing list