Mercurial > mplayer.hg
diff mplayer.c @ 32438:faefba58f413
Implement a basic capture feature, available through -capture.
If a specified key is pressed during playback, the current stream is
captured to a file, similar to what -dumpstream achieves.
patch by P«”sztor Szil«”rd, don tricon hu
author | diego |
---|---|
date | Thu, 21 Oct 2010 18:19:30 +0000 |
parents | d1f6c6cf8905 |
children | 69d3be4d52a2 |
line wrap: on
line diff
--- a/mplayer.c Thu Oct 21 17:35:56 2010 +0000 +++ b/mplayer.c Thu Oct 21 18:19:30 2010 +0000 @@ -263,8 +263,9 @@ #endif // dump: -static char *stream_dump_name="stream.dump"; - int stream_dump_type=0; +char *stream_dump_name = "stream.dump"; +int stream_dump_type = 0; +int capture_dump = 0; // A-V sync: static float default_max_pts_correction=-1;