# HG changeset patch # User reimar # Date 1351620052 0 # Node ID 4a62631ecaddf672b4392e3aefbacdf230e346a7 # Parent 95e5df93e17469c7b97c616b15df0926ac3195c8 Do not assume that a stream is available for capture. diff -r 95e5df93e174 -r 4a62631ecadd command.c --- a/command.c Tue Oct 30 17:47:18 2012 +0000 +++ b/command.c Tue Oct 30 18:00:52 2012 +0000 @@ -1115,7 +1115,7 @@ void *arg, MPContext *mpctx) { int ret; - int capturing = !!mpctx->stream->capture_file; + int capturing = mpctx->stream && mpctx->stream->capture_file; if (!mpctx->stream) return M_PROPERTY_UNAVAILABLE;