History

demux: cosmetic change

This was sort of asymmetric and annoying.

wm4 committed 6 years ago

Commit fbc226a1 parent 26ec5861 file · +1 −2Browse files

Unified · Split

demux/demux.c+1−2
@@ -4028,8 +4028,6 @@ static void update_cache(struct demux_internal *in) · 4027 unmodified lines
4028 struct demuxer *demuxer = in->d_thread;4028 struct demuxer *demuxer = in->d_thread;
4029 struct stream *stream = demuxer->stream;4029 struct stream *stream = demuxer->stream;
4030 4030
4031 struct mp_tags *stream_metadata = NULL;
4032
4033 int64_t now = mp_time_us();4031 int64_t now = mp_time_us();
4034 int64_t diff = now - in->last_speed_query;4032 int64_t diff = now - in->last_speed_query;
4035 bool do_update = diff >= MP_SECOND_US;4033 bool do_update = diff >= MP_SECOND_US;
@@ -4038,6 +4036,7 @@ static void update_cache(struct demux_internal *in) · 2 unmodified lines
4038 pthread_mutex_unlock(&in->lock);4036 pthread_mutex_unlock(&in->lock);
4039 4037
4040 int64_t stream_size = -1;4038 int64_t stream_size = -1;
4039 struct mp_tags *stream_metadata = NULL;
4041 if (stream) {4040 if (stream) {
4042 if (do_update)4041 if (do_update)
4043 stream_size = stream_get_size(stream);4042 stream_size = stream_get_size(stream);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t