mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-02 21:01:56 +00:00
dshow: cleanup reference
Signed-off-by: rogerdpack <rogerpack2005@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c28d80f4c9
commit
42dbf06df0
@ -916,8 +916,8 @@ static int dshow_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
while (!pktl) {
|
while (!pktl) {
|
||||||
WaitForSingleObject(ctx->mutex, INFINITE);
|
WaitForSingleObject(ctx->mutex, INFINITE);
|
||||||
pktl = ctx->pktl;
|
pktl = ctx->pktl;
|
||||||
if (ctx->pktl) {
|
if (pktl) {
|
||||||
*pkt = ctx->pktl->pkt;
|
*pkt = pktl->pkt;
|
||||||
ctx->pktl = ctx->pktl->next;
|
ctx->pktl = ctx->pktl->next;
|
||||||
av_free(pktl);
|
av_free(pktl);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user