Mercurial > mplayer.hg
comparison command.c @ 35204:4a62631ecadd
Do not assume that a stream is available for capture.
author | reimar |
---|---|
date | Tue, 30 Oct 2012 18:00:52 +0000 |
parents | 95ad1e516f03 |
children | 8b8e20725b24 |
comparison
equal
deleted
inserted
replaced
35203:95e5df93e174 | 35204:4a62631ecadd |
---|---|
1113 | 1113 |
1114 static int mp_property_capture(m_option_t *prop, int action, | 1114 static int mp_property_capture(m_option_t *prop, int action, |
1115 void *arg, MPContext *mpctx) | 1115 void *arg, MPContext *mpctx) |
1116 { | 1116 { |
1117 int ret; | 1117 int ret; |
1118 int capturing = !!mpctx->stream->capture_file; | 1118 int capturing = mpctx->stream && mpctx->stream->capture_file; |
1119 | 1119 |
1120 if (!mpctx->stream) | 1120 if (!mpctx->stream) |
1121 return M_PROPERTY_UNAVAILABLE; | 1121 return M_PROPERTY_UNAVAILABLE; |
1122 if (!capture_dump) { | 1122 if (!capture_dump) { |
1123 mp_msg(MSGT_GLOBAL, MSGL_ERR, | 1123 mp_msg(MSGT_GLOBAL, MSGL_ERR, |