From fbcbbf5892122561deee5e273c800c9295b08cbf Mon Sep 17 00:00:00 2001 From: Vladimir Voroshilov Date: Sat, 4 May 2013 02:23:39 +0700 Subject: [PATCH 1/3] remove unused width/height in check_video_format --- stream/tvi_dshow.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/stream/tvi_dshow.c b/stream/tvi_dshow.c index f38a131..b16a4fc 100644 --- a/stream/tvi_dshow.c +++ b/stream/tvi_dshow.c @@ -1830,20 +1830,11 @@ static int check_audio_format(AM_MEDIA_TYPE * pmt, int samplerate, * * \param pmt pointer to AM_MEDIA_TYPE for check * \param fcc FourCC (compression) - * \param width width of picture - * \param height height of picture * * \return 1 if AM_MEDIA_TYPE compatible & \return 0 if not - * - * \note - * width and height are currently not used - * - * \todo - * add width/height check */ -static int check_video_format(AM_MEDIA_TYPE * pmt, int fcc, int width, - int height) +static int check_video_format(AM_MEDIA_TYPE * pmt, int fcc) { mp_msg(MSGT_TV, MSGL_DBG4, "tvi_dshow: check_video_format called\n"); if (!pmt) @@ -3144,8 +3135,7 @@ static int control(priv_t * priv, int cmd, void *arg) if(!priv->chains[0]->arpmt) return TVI_CONTROL_FALSE; for (i = 0; priv->chains[0]->arpmt[i]; i++) - if (check_video_format - (priv->chains[0]->arpmt[i], fcc, priv->width, priv->height)) + if (check_video_format(priv->chains[0]->arpmt[i], fcc)) break; if (!priv->chains[0]->arpmt[i]) { -- 1.8.0.msysgit.0