Commit Graph

319 Commits

Author SHA1 Message Date
Robert O'Callahan
ab84f5ebd3 Bug 519136. Clean up media-related logging. r=doublec
--HG--
extra : rebase_source : 2321054271a8726d17da1c58b876e2a7eb88883c
2009-09-30 07:32:44 +10:00
Robert O'Callahan
34e388be5c Bug 517818. Wave decoder should not look beyond the Wave data area to see if we have a 'next frame' to play. r=kinetik
--HG--
extra : rebase_source : 9964f0fe36d35745354f5723b5d82b1fc18520d6
2009-09-30 07:32:41 +10:00
Robert O'Callahan
47696f6d0b Bug 517818. Treat HTTP errors (other than 416 'Requested Range Not Available') as network errors. And do not allow an error page to be treated as media data. r=kinetik
--HG--
extra : rebase_source : 47f44d18ff0d2c33f2642ae5bedb132cc43eb3cb
2009-09-30 07:32:30 +10:00
Robert O'Callahan
60afa9a18b 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
--HG--
extra : rebase_source : e816c61621f5dd7c670687cf1a70d2eccb488dd6
2009-09-30 06:48:05 +10:00
Chris Pearce
5c108df396 Bug 516323 - Reset libfishsound when seeking to 0 so it doesn't die re-reading header packets. r=doublec 2009-09-29 13:59:00 +13:00
Chris Pearce
4ef626577f Bug 512328 - Update liboggplay to rev 404316e595. r=doublec 2009-09-24 16:22:23 +12:00
Chris Pearce
bc4d80925c Bug 492286 - Null check in nsHTMLSourceElement::BindToTree(). r=roc 2009-09-23 13:58:00 +12:00
Matthew Gregan
43080a1e47 Fix typo/mismerge in 7bab344403c3.
--HG--
extra : rebase_source : 3586c78584b1ed73168ef0e7361b6e46305f43d6
2009-09-22 12:25:24 +12:00
Matthew Gregan
30ee7451cb Bug 517834 - Use gfxQuartzImageSurface to paint video frames for an 8-23% perf win on Mac. r=roc
--HG--
extra : rebase_source : de46fdadcefed1fd203a824ed4b078c7ba0b6779
2009-09-22 12:12:06 +12:00
Matthew Gregan
7518dee43b Bug 515552 - Enable in-monitor assertions in nsOggDecoder. r=chris.double
--HG--
extra : rebase_source : c494f75bd7cc1cf4b114b9ff497412fb1e3c1ce1
2009-09-22 12:11:10 +12:00
Matthew Gregan
466c733803 Bug 481057 - Fire MEDIA_ERR_DECODE errors when a decoding error occurs. r=chris.double, sr=roc
--HG--
extra : rebase_source : a07687f16726086dd425eef8907788019beebbe1
2009-09-22 12:08:13 +12:00
Matthew Gregan
9f16f9a4ac Bug 515546 - Null check mReader in nsOggDecoder::Shutdown. r=chris.double
--HG--
extra : rebase_source : e72005a765db36ed9b4cdd7d8717f6f923ce6b67
2009-09-22 12:03:42 +12:00
Matthew Gregan
40780c2c4b Bug 504613 - Handle zero-byte first-frame packets in Theora. p=tterribe@vt.edu, r=chris.double
--HG--
extra : rebase_source : d2b18e88ddec3836e30b448f949657206a33f3fa
2009-09-15 17:53:49 +12:00
Robert O'Callahan
b138fa1e9d Bug 517818. Suppress seeking to the end of the stream on Resume, there is no data to read there. r=kinetik 2009-09-21 15:47:47 +12:00
Robert O'Callahan
21b987f673 Bug 513144. nsWaveDecoder::PlaybackEnded should call UpdateReadyStateForData to ensure that we enter HAVE_CURRENT_DATA ... otherwise it get into the ended state with HAVE_FUTURE_DATA or HAVE_ENOUGH_DATA, which is wrong. r=kinetik
--HG--
extra : rebase_source : 75bcd57e9c7d93bcf24663731e2e6aadacf07a86
2009-09-15 14:30:45 +12:00
Robert O'Callahan
666ddd4c00 Bug 513144. Allow streams that are related by mozLoadFrom to share data loaded after the initial clone. r=doublec
--HG--
extra : rebase_source : 4dab31030b84ce6066ba694851bb7587a051fe2c
2009-09-15 14:30:45 +12:00
Robert O'Callahan
3e223fd14e 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
--HG--
extra : rebase_source : 982c38bf513865033a2c51554ded3f3f365eeb3a
2009-09-15 14:30:44 +12:00
Robert O'Callahan
e6abe07b1b Bug 513144. Allow nsMediaCache blocks to be owned by multiple streams at the same time. r=doublec
--HG--
extra : rebase_source : 8788764ff6c883d2da5347ead39660626deb9d7c
2009-09-15 14:30:44 +12:00
Robert O'Callahan
93031ccc14 Bug 513144. Allow nsMediaCache blocks to belong to more than one BlockList at the same time. r=doublec
--HG--
extra : rebase_source : e4a53bca2a8c6c7624cbe889f981a57e07b587ad
2009-09-15 14:30:44 +12:00
Robert O'Callahan
60a2f7d116 Bug 513144. Basic implementation of mozLoadFrom API. r=doublec
--HG--
extra : rebase_source : 71d04afaf21d268e3eddbb40e9894479698d1bfc
2009-09-15 14:30:44 +12:00
Robert O'Callahan
ea1ab9ac40 Bug 513144. Hoist nsMediaStream creation up into nsHTMLMediaElement, out of the decoders. Pass the stream as the parameter to nsMediaDecoder::Load. r=doublec
--HG--
extra : rebase_source : f418076a0d534d528dbded66b2d49d8fe908de4b
2009-09-15 14:30:43 +12:00
Robert O'Callahan
df1c341efa Bug 513144. Split static nsMediaStream::Open into static nsMediaStream::Create and nonstatic nsMediaStream::Open. Move call to NS_GetFinalChannelURI down into nsMediaStream::Create. r=doublec
--HG--
extra : rebase_source : be999ad63f1bb1f8adcbbac0640a916f022203a7
2009-09-15 14:30:43 +12:00
Robert O'Callahan
c764bf1840 Bug 513144. Remove mURI from the decoders, and change nsMediaDecoder::GetCurrentURI to GetCurrentStream so nsHTMLMediaElement::GetCurrentSrc gets the URI directly from the stream. r=doublec
--HG--
extra : rebase_source : b1e9680cf33cf7dded79383dfdf7559bbd7b1a78
2009-09-15 14:28:08 +12:00
Robert O'Callahan
2e2663deda Bug 513144. Move ownership of the Ogg decoder's nsMediaStream out from nsChannelReader to nsOggDecoder. Also remove unnecessary mNotifyOnShutdown flag from nsOggDecoder and nsWaveDecoder. Since Load can only be called once after Init, remove unnecessary initialization of variables in Load and move some code up from Load to Init in both backends to simplify Load. r=doublec
--HG--
extra : rebase_source : 65cd9f01424f5b8ab8507e4788f2b8228ce1e2b0
2009-09-11 13:44:21 +12:00
Chris Pearce
9f3d1f4e1a Bug 514573 - Free video data after paint, prevents repainting. r=doublec 2009-09-08 10:23:11 +12:00
Chris Pearce
8d783e47e7 Bug 501031 - Make media seeking faster over HTTP by adding 'fuzz' factor to liboggz seek, and fixing its bisection search. r=doublec 2009-09-08 09:41:56 +12:00
Matthew Gregan
92d786333c Bug 506061 - Calculate frame time based on frame number and frame rate. p=j@oil21.org r=chris.double
Fixes sync problem caused by FP error accumulation in the old frame time
calculation.

--HG--
extra : rebase_source : 3a59eafe1a3fd91760ffb1e336c31ec431dfffc2
2009-09-07 15:30:03 +12:00
Matthew Gregan
9f6a87f82d Bug 497815 - Read Wave headers in small chunks to avoid unnecessary large allocations. r=roc
--HG--
extra : rebase_source : 355af524b6d9f0634d9d09e4ddc1ce1715bc6c81
2009-09-07 15:28:26 +12:00
Matthew Gregan
4057d3a778 Bug 495165 - Add mochitest for bug 486646.
--HG--
extra : rebase_source : 3df5870b298fe27c5a2d61a679359e4f243e57ab
2009-09-07 15:25:22 +12:00
Chris Pearce
a269d39ca2 Bug 513999 - Backed out changeset fb6d235b9efb (bug 512328) to see if that fixes near-permanent orange on Linux on CLOSED TREE. 2009-09-02 10:33:43 +12:00
Chris Pearce
19c48e0643 Bug 512398 - fix liboggplay update (rev f4087c5ac148) which accidentally removed liboggplay's os2_semaphore.*. r=doublec 2009-08-31 14:08:39 +12:00
Chris Pearce
81137811d0 Bug 512398 - Backed out changeset f4087c5ac148, checked in wrong patch. 2009-08-31 13:45:40 +12:00
Chris Pearce
de514873ac Update liboggplay to rev 8640eb3fddc43ad4, correct issue with presentation time, reset libfishsound on seek to 0. 2009-08-31 13:23:17 +12:00
Benjamin Smedberg
ba372f3a4c Followup to bug 398573 - remove REQUIRES from the tree since it is no longer used... automatically generated patch, rs=ted 2009-08-25 08:59:31 -07:00
Chris Pearce
e2d541d341 Bug 493431 - Add test to ensure video file with more audio than video plays and that video.currentTime only increases during playback. r=n/a 2009-08-17 09:32:24 +12:00
Jesse Ruderman
e0887e82ab Hopefully fix orange (bug 509272)
--HG--
rename : content/media/test/sound.ogg => content/media/test/crashtests/sound.ogg
2009-08-08 17:36:23 -07:00
Jesse Ruderman
d2e49bdfcd Add crashtests for bug 459439 and bug 466607 2009-08-08 16:00:31 -07:00
Chris Pearce
da09cceb6e Bug 495129 - Add testcase. 2009-08-04 18:13:40 +12:00
Chris Pearce
4c8efcdc81 Bug 501279 - Add testcases, includes test files from bug 504644 and bug 506094 as they're fixed by bug 501279 too. 2009-08-04 18:13:40 +12:00
Chris Pearce
e55d7dbb34 Bug 500311 - Add testcase. r=roc 2009-08-04 18:13:40 +12:00
Chris Pearce
27b348d57b Bug 498855 - Add testcase. 2009-08-04 18:13:40 +12:00
Chris Pearce
9322db775d Bug 499519 - Add test which ensures height 0 videos load. r=roc 2009-08-04 18:13:33 +12:00
Chris Double
0735935f96 Bug 461286 - Add testcase for small audio files ending correctly 2009-08-04 17:20:37 +12:00
Chris Double
058f34e16a Bug 448636 - Add testcase
--HG--
extra : rebase_source : fe95db053fdb42cece6c9fe2784420d792a3a8e9
2009-08-04 14:44:45 +12:00
Matthew Gregan
35d3e4d56c Bug 507547. Disable EXTEND_PAD for video on Mac, since it's slow. r=roc
--HG--
extra : rebase_source : 440d2ade2e6b8847895e2fdd6b1af2324662667e
2009-08-03 14:22:01 +12:00
Rich Walsh
78b89b2bf4 Bug 506434 - fix ogg video playback regression, cross-platform change, r=chris.double 2009-08-02 14:06:02 +03:00
Robert O'Callahan
f94fc9b0f6 Bug 503835. Wave codec 0 should be reported as unsupported. r=doublec
--HG--
extra : rebase_source : ab41c6d1e124ba52200bf91fcf7bc5d0c983b78e
2009-07-27 10:01:41 +12:00
Robert O'Callahan
1a3f77aef0 Bug 505150. 'new Audio' constructors should set autobuffer automatically. r=doublec
--HG--
extra : rebase_source : 418f3c2ad918ae729857363041273c95230dfd2c
2009-07-27 09:31:11 +12:00
Peter Weilbacher
8325fdca84 Bug 495352: Audio stream polling runs amok, p=dragtext@e-vertise, r=chris.double 2009-07-23 09:17:26 +03:00
Robert O'Callahan
e3d0f72897 Fix for bug 503468 (canPlayType should return "", not "no"). r=cdouble.
--HG--
extra : rebase_source : d54cf6d92a20a5f7e6ce66042c8d489dc93f0c7a
2009-07-14 16:04:56 +02:00