Commit 42dbf06d authored by rogerdpack's avatar rogerdpack Committed by Michael Niedermayer

dshow: cleanup reference

Signed-off-by: 's avatarrogerdpack <rogerpack2005@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c28d80f4
......@@ -916,8 +916,8 @@ static int dshow_read_packet(AVFormatContext *s, AVPacket *pkt)
while (!pktl) {
WaitForSingleObject(ctx->mutex, INFINITE);
pktl = ctx->pktl;
if (ctx->pktl) {
*pkt = ctx->pktl->pkt;
if (pktl) {
*pkt = pktl->pkt;
ctx->pktl = ctx->pktl->next;
av_free(pktl);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment