diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-09-23 21:21:58 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-09-23 21:21:58 +0000 |
commit | bf16f6f4f329b7903ba550c458545fbdb41f5314 (patch) | |
tree | b9009935031d204f281367db020e88edb6e50702 /mpcommon.h | |
parent | 4834e2116289f92edc49dc8e595e70adcdc26cec (diff) | |
download | mpv-bf16f6f4f329b7903ba550c458545fbdb41f5314.tar.bz2 mpv-bf16f6f4f329b7903ba550c458545fbdb41f5314.tar.xz |
Make update_subtitles work without sh_video for text subtitles.
This fixes a crash with e.g. auto-enabled subtitles and -novideo due to
command.c calling update_subtitles even without video and is a step
toward subtitle support for audio-only files.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29710 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mpcommon.h')
-rw-r--r-- | mpcommon.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpcommon.h b/mpcommon.h index a0c6fb8ff8..98f3d4e075 100644 --- a/mpcommon.h +++ b/mpcommon.h @@ -10,7 +10,7 @@ extern struct ass_track_s *ass_track; extern subtitle *vo_sub_last; void print_version(const char* name); -void update_subtitles(sh_video_t *sh_video, demux_stream_t *d_dvdsub, int reset); +void update_subtitles(sh_video_t *sh_video, double pts, demux_stream_t *d_dvdsub, int reset); void update_teletext(sh_video_t *sh_video, demuxer_t *demuxer, int reset); int select_audio(demuxer_t* demuxer, int audio_id, char* audio_lang); |