chromecast: postpone stop when loading
commit3b1359ae207eb9e473f4225b454177a54d8360c0
authorThomas Guillem <thomas@gllm.fr>
Mon, 5 Feb 2018 16:31:52 +0000 (5 17:31 +0100)
committerThomas Guillem <thomas@gllm.fr>
Mon, 5 Feb 2018 16:37:16 +0000 (5 17:37 +0100)
tree53f9317e78511a50c80454a8c69d41702055a534
parent86de6e31817c77d28359c58fcf224ec239b592cf
chromecast: postpone stop when loading

The cc on the nvidia shield can buffer a lot before sending a Buffering/Playing
event. If you stopped during this period (m_mediaSessionId=0), the cc could
play around 5 seconds of video/sound before draining its buffers.
modules/stream_out/chromecast/chromecast.h
modules/stream_out/chromecast/chromecast_ctrl.cpp