Browse Source

avdevice/dshow: Remove unneeded NULL checks

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 10 years ago
parent
commit
9c3a8693a2
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      libavdevice/dshow.c

+ 2
- 4
libavdevice/dshow.c View File

@@ -294,8 +294,7 @@ dshow_cycle_devices(AVFormatContext *avctx, ICreateDevEnum *devenum,
}

fail1:
if (buf)
av_free(buf);
av_free(buf);
if (bag)
IPropertyBag_Release(bag);
IMoniker_Release(m);
@@ -458,8 +457,7 @@ next:
}
end:
IAMStreamConfig_Release(config);
if (caps)
av_free(caps);
av_free(caps);
if (pformat_set)
*pformat_set = format_set;
}


Loading…
Cancel
Save