Commit Graph

35 Commits

Author SHA1 Message Date
Matthew Gregan
e2c6477ac0 Bug 1065219 - Move track format rejection from switch to init time. r=cajbir 2014-09-10 14:21:17 +12:00
Matthew Gregan
322fb13e73 Bug 1065218 - Convert MediaSourceReader timestamp handling to int64_t/microseconds. r=karlt 2014-09-10 14:27:51 +12:00
Matthew Gregan
ed7638304a Bug 1064160 - Move NotifyGotData calls to TrackBuffer so they are closer to the state being waited/notified on. r=cajbir
Rename NotifyGotData to slightly clearer NotifyTimeRangesChanged.  Move
WaitForData from MediaSourceDecoder's public API to MediaSourceReader's
private API and hoist the wait loop logic inside it.
2014-09-07 23:54:00 +12:00
Matthew Gregan
075d6d033b Bug 1062664 - Don't update MediaSourceReader::mLast{Audio,Video}Time when seeking. r=cajbir
Any On{Audio,Video}Decoded callbacks triggered before we request a new
sample from a reader after seeking should not be used to compute the
last sample time because they originate from the reader we're switching
away from and cause us to switch back to it after seeking.
2014-09-08 16:55:20 +12:00
Matthew Gregan
276883db66 Bug 1062664 - Make Switch{Audio,Video}Reader return true only on an actual reader change (i.e. selecting the current reader is not a switch). r=cajbir
Remove the ok check from MSR::Seek now that Switch{Audio,Video}Reader
may return false; return to relying on the ContainsTime assert.
2014-09-08 16:54:52 +12:00
Matthew Gregan
08efae014c Bug 1062664 - Select newest decoder for a given TrackBuffer. r=cajbir 2014-09-08 12:13:50 +12:00
Matthew Gregan
b1e76c08a0 Bug 1062664 - Refactor reader switching. r=cajbir 2014-09-08 12:07:56 +12:00
Matthew Gregan
dd99ea0aca Bug 1064118 - Drop MediaSourceReader sub-reader refs in a safer order. r=cajbir 2014-09-08 12:59:36 +12:00
Matthew Gregan
afca315c90 Bug 1062669 - Consider only SourceBuffers created before the first initialization segment is appended as essential for parent decoder initialization. r=cajbir 2014-09-05 12:04:54 +12:00
Matthew Gregan
f5d936f081 Bug 1059058 - Introduce abstraction to manager mapping between SourceBuffers and SourceBufferDecoders for the MediaSourceReader. r=cajbir 2014-09-04 13:57:06 +12:00
Ryan VanderMeulen
ca447c328b Backed out 3 changesets (bug 1059058) for mochitest-1 leaks.
Backed out changeset 3a343c27fc7a (bug 1059058)
Backed out changeset 8808324ba834 (bug 1059058)
Backed out changeset c8f0afffca59 (bug 1059058)
2014-09-03 13:55:55 -04:00
Matthew Gregan
cf9599d1bf Bug 1059058 - Test bustage fix.
--HG--
extra : rebase_source : 8a9d1e62beaa3921884a70aae3f8fd23322fda68
2014-09-04 03:56:37 +12:00
Matthew Gregan
08408b531e Bug 1059058 - Introduce abstraction to manager mapping between SourceBuffers and SourceBufferDecoders for the MediaSourceReader. r=cajbir 2014-08-28 20:18:01 +12:00
Carsten "Tomcat" Book
a7a881c1f0 Backed out changeset f9ecc7e71689 (bug 1059058) for bustage on a CLOSED TREE 2014-09-03 16:14:25 +02:00
Matthew Gregan
4e3577fb60 Bug 1059058 - Introduce abstraction to manager mapping between SourceBuffers and SourceBufferDecoders for the MediaSourceReader. r=cajbir 2014-08-28 20:18:01 +12:00
Chris Double
15f2c5f49a Bug 1062020 - Set video/audio sample discontinuity flag in MSE after seek - r=kinetik 2014-09-03 21:56:22 +12:00
Chris Double
98f9d6b5a4 Bug 1062018 - MSE Audio decoder reaching EOS stops decoding - r=kinetik 2014-09-03 15:20:02 +12:00
Phil Ringnalda
7306963418 Backed out changeset b9e3a9f5d04a (bug 1036849) for build bustage, a=backout 2014-09-01 19:22:06 -07:00
Anthony Jones
56fce201c1 Bug 1036849 - Share a single MediaSourceReader; r=edwin; a=philor 2014-09-02 13:42:39 +12:00
Ehsan Akhgari
80e34a12ae Bug 1060980 - Fix more bad implicit constructors in the media code; r=roc
--HG--
extra : rebase_source : 14da50f7d2e37e04452445dea575ea4d582e8efd
2014-08-31 23:50:23 -04:00
Jean-Yves Avenard
a7bc1986fd Bug 1058422: Don't immediately request new data r=cajbir 2014-08-29 12:15:40 +12:00
Matthew Gregan
f43aa33f3f Bug 1044498 - Return a null decoder when CreateSubDecoder is called in Shutdown state. r=cajbir 2014-08-27 12:45:05 +12:00
Matthew Gregan
a571ddfdfe Bug 1044498 - Save init segment for reuse during overlapped appends. r=cajbir 2014-08-26 18:22:20 +12:00
Matthew Gregan
02c47fa30a Bug 1058418 - Make SBR::GetNextCachedData return a sane value, add more unimplemented function logging in MSE, drop unused mPrincipal from SBR. r=cajbir 2014-08-25 18:05:48 +12:00
Jean-Yves Avenard
f7b3bda8d2 Bug 1058428 - Ensure all in-use decoders contain the target range - r=cajbir 2014-08-27 14:08:33 +12:00
Chris Double
0f8003c779 Bug 1041374 - Fix deadlock in MSE reading vs data adding - r=kinetik 2014-08-26 19:26:03 +12:00
Chris Double
261e040f96 Bug 1058364 - MediaSource streams don't correctly handle the end of sub decoders - r=kinetik 2014-08-26 19:25:09 +12:00
Matthew Gregan
a1f2fa1ab5 Bug 1040563 - Move WaitForData/NotifyGotData from MediaSource to MediaSourceDecoder, which is off-main-thread friendly. r=cajbir
Also remove mMediaSource from MediaSourceReader and rejig SetMediaSourceDuration to go via MediaSourceDecoder and handle mMediaSource being null.
2014-08-25 16:09:44 +12:00
Matthew Gregan
274b729d06 Bug 1056534 - Add logging to stubbed out member functions to speed up debugging. r=cajbir
--HG--
rename : content/media/mediasource/SubBufferDecoder.cpp => content/media/mediasource/SourceBufferDecoder.cpp
rename : content/media/mediasource/SubBufferDecoder.h => content/media/mediasource/SourceBufferDecoder.h
rename : content/media/BufferDecoder.cpp => content/media/webaudio/BufferDecoder.cpp
rename : content/media/BufferDecoder.h => content/media/webaudio/BufferDecoder.h
2014-08-22 14:14:36 +12:00
Matthew Gregan
4761a5fdc8 Bug 1056452 - Make MediaSource::GetBuffered more readable w.r.t the spec. Improve logging of TimeRanges. r=cajbir 2014-08-20 20:07:00 +12:00
Matthew Gregan
04e09eae6c Bug 1055899 - Handle audio decoder resets from a SourceBuffer by switching to the new decoder. r=cajbir 2014-08-21 15:14:48 +12:00
Matthew Gregan
4536927ca4 Bug 1053674 - Remove subclass of StateMachine and use task queue directly. r=cpearce 2014-08-17 23:29:00 +12:00
Matthew Gregan
4dc959d286 Backed out changeset 0f59a9eb1658 due to bustage. 2014-08-18 17:02:26 +12:00
Matthew Gregan
9367a39388 Bug 1053674 - Remove subclass of StateMachine and use our own task queue. r=cpearce 2014-08-14 01:14:00 +12:00
Matthew Gregan
1ee8c55022 Bug 1053658 - Split MSDecoder and MSReader into separate files. r=cajbir
--HG--
rename : content/media/mediasource/MediaSourceDecoder.cpp => content/media/mediasource/MediaSourceReader.cpp
2014-08-14 00:22:00 +12:00