[FFmpeg-cvslog] dshow: cleanup reference
rogerdpack
git at videolan.org
Sun Aug 19 18:41:49 CEST 2012
ffmpeg | branch: master | rogerdpack <rogerpack2005 at gmail.com> | Thu Aug 16 10:42:46 2012 -0600| [42dbf06df0130456692fae8a008ddcebaa74d2e3] | committer: Michael Niedermayer
dshow: cleanup reference
Signed-off-by: rogerdpack <rogerpack2005 at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=42dbf06df0130456692fae8a008ddcebaa74d2e3
---
libavdevice/dshow.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 93bca1d..3a2d6e1 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -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);
}
More information about the ffmpeg-cvslog
mailing list