Robert O'Callahan
ca75039037
Bug 687972. Set mCacheSuspended/mChannelEnded flags on all streams *before* calling CacheClientSeek/Resume/Suspend on any stream, because nsMediaChannelStream::CacheClientSuspend will call nsBuiltinDecoder::NotifySuspendedStatusChanged which will call nsMediaChannelStream::IsSuspendedByCache which will call nsMediaCacheStream::AreAllStreamsForResourceSuspended which relies on mCacheSuspended/mChannelEnded being set correctly for all streams for that resource. r=doublec
2011-12-02 17:43:42 +13:00
Robert O'Callahan
d2c00ada6d
Bug 687972. Don't count streams whose channel has ended when looking to see if there's any non-suspended stream for a resource. r=cpearce
2011-12-01 12:09:10 +13:00
Robert O'Callahan
6bca92a0ef
Bug 687972. Try 2: Run autoplay for an element after reaching loadedmetadata if all download streams for its resource are suspended by the media cache. r=cpearce
2011-11-30 18:05:49 +13:00
Robert O'Callahan
e88975f4b7
Bug 703379. Fire CacheClientNotifyDataEnded when we clone a decoder which has already reached the end of the download. r=doublec
2011-11-24 12:05:12 +13:00
Robert O'Callahan
690afadb16
Bug 703379. Part 3: Ensure that we can extract the data from any partially-read blocks held by any stream for a given resource. r=doublec
2011-11-24 12:01:50 +13:00
Matthew Gregan
8cc7c52480
Bug 690603 - Remove PR_TRUE/PR_FALSE from media code. r=doublec
2011-09-30 12:34:37 +13:00
Michael Wu
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00
Ed Morley
e02f78569a
Bug 661584 - Code cleanup, substitute more PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc,ted
2011-06-25 16:06:02 +02:00
Dominic Fandrey
532ec73933
Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc
2011-06-02 14:56:50 +02:00
Masayuki Nakano
81dbe5de4d
Bug 659536 part.2 Replace nsContentUtils::GetIntPref() with Preferences::GetInt() or Preferences::GetUint() r=roc
2011-05-25 15:32:00 +09:00
Chris Jones
4b3bb04878
Bug 556214, parts 1 and 1.1: Rename Monitor to ReentrantMonitor and fix existing Monitor users. r=roc
2011-04-29 14:21:57 -05:00
Chris Pearce
52bae6a140
Bug 641718 - Convert to using microseconds for internal video timestamps. r=kinetik
2011-04-14 10:12:23 +12:00
Chris Jones
9ae6458637
Rollup of bug 645263 and bug 646259: Switch to mozilla:: sync primitives. r=cjones,dbaron,doublec,ehsan src=bsmedberg
...
Bug 645263, part 0: Count sync primitive ctor/dtors. r=dbaron
Bug 645263, part 1: Migrate content/media to mozilla:: sync primitives. r=doublec
Bug 645263, part 2: Migrate modules/plugin to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 3: Migrate nsComponentManagerImpl to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 4: Migrate everything else to mozilla:: sync primitives. r=dbaron
Bug 645263, part 5: Remove nsAutoLock.*. sr=bsmedberg
Bug 645263, part 6: Make editor test be nicer to deadlock detector. r=ehsan
Bug 645263, part 7: Disable tracemalloc backtraces for xpcshell tests. r=dbaron
Bug 646259: Fix nsCacheService to use a CondVar for notifying. r=cjones
2011-03-31 23:29:02 -05:00
Chris Pearce
0b0a559f09
Bug 641718 - Backout 44d43f095a4f. r=backout
2011-04-01 13:02:20 +13:00
Chris Jones
375ed04d1d
Merge backout
2011-03-31 18:58:11 -05:00
Chris Jones
ecb9597975
Backed out changeset 4beec31b9ea9 for increasing frequency of intermittent orange bug 618052
2011-03-31 18:57:38 -05:00
Chris Jones
5dece3352a
Rollup of bug 645263 and bug 646259: Switch to mozilla:: sync primitives. r=cjones,dbaron,doublec,ehsan src=bsmedberg
...
Bug 645263, part 0: Count sync primitive ctor/dtors. r=dbaron
Bug 645263, part 1: Migrate content/media to mozilla:: sync primitives. r=doublec
Bug 645263, part 2: Migrate modules/plugin to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 3: Migrate nsComponentManagerImpl to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 4: Migrate everything else to mozilla:: sync primitives. r=dbaron
Bug 645263, part 5: Remove nsAutoLock.*. sr=bsmedberg
Bug 645263, part 6: Make editor test be nicer to deadlock detector. r=ehsan
Bug 645263, part 7: Disable tracemalloc backtraces for xpcshell tests. r=dbaron
Bug 646259: Fix nsCacheService to use a CondVar for notifying. r=cjones
2011-03-31 14:51:19 -05:00
Chris Pearce
c23ff371d8
Bug 641718 - Convert to using microseconds for internal video timestamps. r=kinetik
2011-04-01 11:10:49 +13:00
Chris Pearce
e5c9aaaea5
Bug 639391 - Make nsMediaStream responsible for determining cached media data in a threadsafe manner. r=roc
2011-03-24 11:28:58 +13:00
Doug Turner
1e3cea2b2d
Bug 631058 - Backing out changesets 0d43e33ce134 and 60d7b8a4c275. r=wes, a=backout-scary-stuff
2011-02-17 08:41:07 -08:00
Wes Johnston
e24dc818e1
Bug 631058 - Part 2 -Only decode Only decode metadata for preload=metadata. This has the fix ups that cpearce requires. r=cpearce, a=blocking-fennec
2011-02-15 20:31:08 -08:00
Doug Turner
6de3704efb
Backed out changeset 0000b936e5c6
2011-02-15 20:31:00 -08:00
Wes Johnston
914f696701
Bug 631058 - Part 2 -Only decode Only decode metadata for preload=metadata. r=cpearce, a=blocking-fennec
2011-02-15 16:54:47 -08:00
d3db14caf8
Bug 615838 comparison between signed and unsigned integer expressions in nsMediaCache::FlushInternal. r=roc a=roc
2010-12-03 14:08:49 +13:00
Chris Pearce
ed90e7aefe
Bug 572579 - Correct file perms for media cache temp subdir and file. r=roc a=blocking2.0
2010-10-26 14:21:16 +13:00
Chris Pearce
cc23b9f0b0
Bug 572579 - Remove stray media cache files after 30s idle time on Windows. r=bsmedberg a=blocking2.0
2010-10-17 08:58:20 +13:00
Chris Pearce
3305d7c012
Backed out changeset 22b6b7465458
2010-10-26 17:43:10 +13:00
Chris Pearce
bac6d558d4
Bug 572579 - Remove stray media cache files after 30s idle time on Windows. r=bsmedberg a=blocking2.0
2010-10-17 08:58:20 +13:00
Chris Pearce
4b03189080
Bug 572579 - Backed out changeset 34c006122b71 a=backout
2010-10-17 09:55:35 +13:00
Chris Pearce
2395f667f0
Bug 572579 - Remove stray media cache files after 30s idle time on Windows. r=bsmedberg a=blocking2.0
2010-10-17 08:58:20 +13:00
Ehsan Akhgari
5c412816c0
Bug 572243 - Media cache should be cleared when leaving private browsing mode; r=bzbarsky a=blocking-betaN+
2010-09-28 20:02:08 -04:00
Robert O'Callahan
7d947b5f35
Bug 584238 - Add an API to clear the media cache; r=kinetik a=blocking-betaN+
2010-10-13 10:14:08 -04:00
Matthew Gregan
b11467def4
Bug 585864 - Increase media cache block size from 4kB to 32kB. r=roc a=roc
2010-08-13 12:41:47 +12:00
Robert O'Callahan
d32354727b
Bug 567805. Call UpdatePlaybackRate whenever duration is set. r=doublec
2010-07-20 13:29:27 +12:00
Matthew Gregan
51f2bbac1f
Bug 572515 - Crash in [@ nsMediaCacheStream::~nsMediaCacheStream()] if nsMediaCache fails to init. r=roc
2010-06-17 21:46:28 +02:00
Matthew Gregan
19b10da172
Bug 572235 - Increase default media cache size from 50MB to 500MB. r=roc
2010-06-16 11:12:38 +12:00
Robert O'Callahan
783f1d71fc
Bug 529105. Don't mess with closed streams when data arrives for a resource that the closed stream is using. r=doublec
2009-11-18 13:38:16 +13:00
Robert O'Callahan
738337d486
Bug 518659. When deciding whether a previous stream is going to load the data we need, we need to check against the data we'll be loading next, not the data we're currently loading. r=doublec
2009-11-18 13:38:16 +13:00
Robert O'Callahan
995ba95ba9
Bug 521178. Don't open a connection when we're only trying to read at the end of the resource (even if the seek-vs-read optimization decides we should just read from the start of the resource). r=doublec
2009-10-10 00:48:30 +13:00
Robert O'Callahan
04859385af
Bug 521176. Don't unnecessarily start an HTTP transaction when cloning a media resource. r=doublec
2009-10-10 00:48:30 +13:00
Robert O'Callahan
52bde8e8c7
Bug 518659. Make nsMediaCache call out to nsMediaCacheStream::ClientSeek/Suspend/Resume without holding its lock. r=doublec
2009-10-10 00:46:23 +13:00
Matthew Gregan
fb1cc68351
Bug 523814 - Refresh entry pointer after hashtable mutation in NotifyBlockSwapped. r=roc
2009-10-23 15:18:54 +13:00
Robert O'Callahan
9b399aac20
Bug 522114. Fix stupid bug so we don't treat 0 pin count as pinned. r=doublec
2009-10-15 15:20:49 +13:00
Robert O'Callahan
9ab29cdee1
Bug 519136. Clean up media-related logging. r=doublec
2009-09-30 07:32:44 +10:00
Robert O'Callahan
b8a7cd1e6c
Bug 517818. When nsMediaCache::Update wants to read from the end of the stream, don't resume if we're already suspended. And if the channel is not already positioned at the end, suspend instead of seeking to the end, since there is no point in seeking to the end and it may cause harmful side effects. r=doublec
2009-09-30 06:48:05 +10:00
Robert O'Callahan
714c7aa471
Bug 513144. Allow streams that are related by mozLoadFrom to share data loaded after the initial clone. r=doublec
2009-09-15 14:30:45 +12:00
Robert O'Callahan
bad7376a1e
Bug 513144. Make nsMediaChannelStream::CloneData clone the underlying cache stream, which adds the new stream as co-owner of all the nsMediaCache blocks currently cached for the original stream. Also, use NS_NEW_RUNNABLE_METHOD instead of the SuspendedStatusChanged class. r=doublec
2009-09-15 14:30:44 +12:00
Robert O'Callahan
5b47c32f01
Bug 513144. Allow nsMediaCache blocks to be owned by multiple streams at the same time. r=doublec
2009-09-15 14:30:44 +12:00
Robert O'Callahan
ce894aef79
Bug 513144. Allow nsMediaCache blocks to belong to more than one BlockList at the same time. r=doublec
2009-09-15 14:30:44 +12:00
Robert O'Callahan
e70ed7c02b
Bug 499880 - Restructure content/media directory. r+=doublec
2009-06-26 16:23:15 +12:00