diff options
author | wm4 <wm4@nowhere> | 2015-10-22 01:26:34 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-10-22 01:26:34 +0200 |
commit | 0a1a5707bfbcd8d35655499edcf6a7118aa519e7 (patch) | |
tree | 56ccff1e1f17fcd56180d2ecd7b61b239727c556 /demux | |
parent | dd08018e9e936a20b413a5d6814ca12b041ffef2 (diff) | |
download | mpv-0a1a5707bfbcd8d35655499edcf6a7118aa519e7.tar.bz2 mpv-0a1a5707bfbcd8d35655499edcf6a7118aa519e7.tar.xz |
demux: cosmetics: remove indirection
Let's not waste precious lines.
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/demux/demux.c b/demux/demux.c index 7ca3835388..53fb5c6cad 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -428,10 +428,8 @@ static bool read_packet(struct demux_internal *in) pthread_mutex_lock(&in->lock); if (eof) { - for (int n = 0; n < in->d_buffer->num_streams; n++) { - struct demux_stream *ds = in->d_buffer->streams[n]->ds; - ds->eof = true; - } + for (int n = 0; n < in->d_buffer->num_streams; n++) + in->d_buffer->streams[n]->ds->eof = true; // If we had EOF previously, then don't wakeup (avoids wakeup loop) if (!in->last_eof) { if (in->wakeup_cb) |