0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

sub: fix incorrect commit

Commit c6369933f1 accidentally added an old version of this comment.
This commit is contained in:
wm4 2020-05-15 16:19:02 +02:00
parent 810b37fc3f
commit c4d0d7a194

View File

@ -348,9 +348,7 @@ struct sub_bitmaps *sub_get_bitmaps(struct dec_sub *sub, struct mp_osd_res dim,
return res; return res;
} }
// This can only be called by the main thread, due to the returned text pointing // The returned string is talloc'ed.
// to a buffer bound to the sub object. The main thread is the designated
// "outside" owner of the buffer.
char *sub_get_text(struct dec_sub *sub, double pts, enum sd_text_type type) char *sub_get_text(struct dec_sub *sub, double pts, enum sd_text_type type)
{ {
pthread_mutex_lock(&sub->lock); pthread_mutex_lock(&sub->lock);