Browse Source

dshow: cleanup reference

Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
rogerdpack Michael Niedermayer 13 years ago
parent
commit
42dbf06df0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavdevice/dshow.c

+ 2
- 2
libavdevice/dshow.c View File

@@ -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);
}


Loading…
Cancel
Save