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