|
|
Notify demux stream clients when a stream is disabled.
Currently DemuxerStream client are notified about the stream being
disabled by an EOS buffer being returned from the Read call. But that
is problematic on media pipelines with deep buffering (like Chromecast)
where the client would have to read and process all previous buffers
before getting the EOS buffer. In order to ensure that disabling a
demuxer stream happens instantly, we need to notify clients via the
same mechanism that is currently being used for notifying them about
stream being re-enabled. This change will make it so that the
corresponding renderer gets flushed as soon as the DemuxerStream is
disabled. And then the renderer is going to be restarted, will read
the EOS buffer from the stream and will go into the 'ended' state just
like before.
BUG= 633299
Committed: https://crrev.com/af21ccc6ee855dda09fd437637759071b04439e6
Cr-Commit-Position: refs/heads/master@{#409941}
Total comments: 9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+125 lines, -47 lines) |
Patch |
 |
M |
chromecast/media/cma/base/demuxer_stream_for_test.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chromecast/media/cma/base/demuxer_stream_for_test.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/base/demuxer_stream.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/base/fake_demuxer_stream.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/base/fake_demuxer_stream.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/base/fake_text_track_stream.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/base/fake_text_track_stream.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/base/mock_filters.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/filters/chunk_demuxer.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/filters/chunk_demuxer.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
media/filters/chunk_demuxer_unittest.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+38 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/decrypting_demuxer_stream.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/filters/decrypting_demuxer_stream.cc
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/filters/ffmpeg_demuxer.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/filters/ffmpeg_demuxer.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
media/mojo/services/mojo_demuxer_stream_adapter.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/mojo/services/mojo_demuxer_stream_adapter.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/renderers/renderer_impl.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/renderers/renderer_impl.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+18 lines, -16 lines |
0 comments
|
Download
|
 |
M |
media/renderers/renderer_impl_unittest.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+29 lines, -1 line |
0 comments
|
Download
|
Total messages: 48 (34 generated)
|