From 50c379e2d8a2cee0fcdbadbcbf5d0a0617fdafec Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 27 Dec 2015 01:25:32 +0100 Subject: sub: minor refactor how video FPS for MicroDVD is set So that the video FPs is not required at initialization, and can be set later. (As for whether this MicroDVD crap is worth the trouble to handle it "correctly": MicroDVD files are unfortunately still around, and in at least one case using the video FPS seemed to help indeed.) --- sub/dec_sub.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'sub/dec_sub.c') diff --git a/sub/dec_sub.c b/sub/dec_sub.c index a1f72d432b..1a2c170596 100644 --- a/sub/dec_sub.c +++ b/sub/dec_sub.c @@ -113,13 +113,6 @@ bool sub_is_initialized(struct dec_sub *sub) return r; } -void sub_set_video_fps(struct dec_sub *sub, double fps) -{ - pthread_mutex_lock(&sub->lock); - sub->init_sd.video_fps = fps; - pthread_mutex_unlock(&sub->lock); -} - static int sub_init_decoder(struct dec_sub *sub, struct sd *sd) { sd->driver = NULL; -- cgit v1.2.3