diff options
author | wm4 <wm4@nowhere> | 2016-01-16 21:19:52 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-16 22:08:39 +0100 |
commit | 056901b2be67072f41315fce26e0f58e5569be9a (patch) | |
tree | 96c418024a3c9b9f2cbeebd25fa67929e60bcc6e /player/command.c | |
parent | 20991a95b8cbbae42ee4226282841d028355808b (diff) | |
download | mpv-056901b2be67072f41315fce26e0f58e5569be9a.tar.bz2 mpv-056901b2be67072f41315fce26e0f58e5569be9a.tar.xz |
video: refactor: disentangle decoding/filtering some more
This moves some code related to decoding from video.c to dec_video.c,
and also removes some accesses to dec_video.c from the filtering code.
dec_video.ch is starting to make sense, and simply returns video frames
from a demuxer stream. The API exposed is also somewhat intended to be
easily changeable to move decoding to a separate thread, if we ever want
this (due to libavcodec already being threaded, I don't see much of a
reason, but it might still be helpful).
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c index 46c608389a..0ff38264e0 100644 --- a/player/command.c +++ b/player/command.c @@ -563,7 +563,7 @@ static int mp_property_drop_frame_cnt(void *ctx, struct m_property *prop, if (!mpctx->d_video) return M_PROPERTY_UNAVAILABLE; - return m_property_int_ro(action, arg, mpctx->dropped_frames_total); + return m_property_int_ro(action, arg, mpctx->d_video->dropped_frames); } static int mp_property_mistimed_frame_count(void *ctx, struct m_property *prop, |