Commit Graph

352 Commits

Author SHA1 Message Date
Mike Kristoffersen
ca0919d374 Bug 525946 - White spaces at EOL in nsMediaDecoder.cpp. r=chris.double
--HG--
extra : rebase_source : 2982e3ee884d34b365256df901ae02055bee1765
2009-11-06 08:33:27 +01:00
Mike Kristoffersen
0f989a8e1d Bug 525949 - White spaces at EOL in nsMediaDecoder.h. r=chris.double 2009-11-05 14:56:05 +01:00
Mike Kristoffersen
c0bf5e93cc Bug 525951 - White spaces at EOL in nsMediaStream.cpp. r=chris.double 2009-11-05 14:55:35 +01:00
Robert O'Callahan
021d1f80aa 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
b786c847ff Bug 521176. Don't unnecessarily start an HTTP transaction when cloning a media resource. r=doublec 2009-10-10 00:48:30 +13:00
Jesse Ruderman
d57f2b3764 Add crashtests for bug 466945, bug 464197, and bug 467323 2009-10-31 19:35:39 -07:00
Robert O'Callahan
8e318e7007 Bug 518659. Make nsHTMLMediaElement hold a reference to itself to keep itself alive while network or decoder activity could result in events being fired in the future. Also rework the handling of media elements in inactive documents. r=jst, r=doublec 2009-10-02 00:10:13 +10:00
Robert O'Callahan
2a59a5ea72 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
8bd8cb870d Bug 499874 - If decoding finishes when seeking to end of media, don't attempt to decode additional frames. Fixes a hang caused by violating oggplay's assumptions. r=roc
--HG--
extra : rebase_source : b8510182821e4babf667b0ff7d63060a82535c7c
2009-10-20 16:18:18 +13:00
Matthew Gregan
e346510322 Bug 499874 - Move Wave decoder to ended state when seeking to end of media. r=roc
--HG--
extra : rebase_source : 8cad22f7269f9e4a9ff0f9885036b2a47f525b7d
2009-10-20 15:48:03 +13:00
Matthew Gregan
75b780ece6 Bug 523814 - Refresh entry pointer after hashtable mutation in NotifyBlockSwapped. r=roc
--HG--
extra : rebase_source : 38287a4c930df4e55a5cf5fa334d48b26f7105fa
2009-10-23 15:18:54 +13:00
Matthew Gregan
31ea5a204f Bug 523816 - Fix calculation of CMML record size. r=roc
--HG--
extra : rebase_source : a1f68e1f64581029b9624fd57a897f0085dd126b
2009-10-23 11:17:35 +13:00
Chris Pearce
0a4ce07599 Bug 523335 - Abort seek operation on underlying stream close. r=roc 2009-10-21 16:24:21 +13:00
Masayuki Nakano
df751e7973 Backing out bug 520417
--HG--
rename : widget/src/beos/nsSystemSoundService.cpp => widget/src/beos/nsSound.cpp
rename : widget/src/beos/nsSystemSoundService.h => widget/src/beos/nsSound.h
rename : widget/src/cocoa/nsSystemSoundService.h => widget/src/cocoa/nsSound.h
rename : widget/src/cocoa/nsSystemSoundService.mm => widget/src/cocoa/nsSound.mm
rename : widget/src/gtk2/nsSystemSoundService.cpp => widget/src/gtk2/nsSound.cpp
rename : widget/src/gtk2/nsSystemSoundService.h => widget/src/gtk2/nsSound.h
rename : widget/src/os2/nsSystemSoundService.cpp => widget/src/os2/nsSound.cpp
rename : widget/src/os2/nsSystemSoundService.h => widget/src/os2/nsSound.h
rename : widget/src/photon/nsSystemSoundService.cpp => widget/src/photon/nsSound.cpp
rename : widget/src/photon/nsSystemSoundService.h => widget/src/photon/nsSound.h
rename : widget/src/qt/nsSystemSoundService.cpp => widget/src/qt/nsSound.cpp
rename : widget/src/qt/nsSystemSoundService.h => widget/src/qt/nsSound.h
rename : widget/src/windows/nsSystemSoundService.cpp => widget/src/windows/nsSound.cpp
rename : widget/src/windows/nsSystemSoundService.h => widget/src/windows/nsSound.h
2009-10-18 16:29:08 +09:00
Masayuki Nakano
4acf47e1e9 Bug 520417 Redesign nsSound structure r+sr=roc
--HG--
rename : widget/src/beos/nsSound.cpp => widget/src/beos/nsSystemSoundService.cpp
rename : widget/src/beos/nsSound.h => widget/src/beos/nsSystemSoundService.h
rename : widget/src/cocoa/nsSound.h => widget/src/cocoa/nsSystemSoundService.h
rename : widget/src/cocoa/nsSound.mm => widget/src/cocoa/nsSystemSoundService.mm
rename : widget/src/gtk2/nsSound.cpp => widget/src/gtk2/nsSystemSoundService.cpp
rename : widget/src/gtk2/nsSound.h => widget/src/gtk2/nsSystemSoundService.h
rename : widget/src/os2/nsSound.cpp => widget/src/os2/nsSystemSoundService.cpp
rename : widget/src/os2/nsSound.h => widget/src/os2/nsSystemSoundService.h
rename : widget/src/photon/nsSound.cpp => widget/src/photon/nsSystemSoundService.cpp
rename : widget/src/photon/nsSound.h => widget/src/photon/nsSystemSoundService.h
rename : widget/src/qt/nsSound.cpp => widget/src/qt/nsSystemSoundService.cpp
rename : widget/src/qt/nsSound.h => widget/src/qt/nsSystemSoundService.h
rename : widget/src/windows/nsSound.cpp => widget/src/windows/nsSystemSoundService.cpp
rename : widget/src/windows/nsSound.h => widget/src/windows/nsSystemSoundService.h
2009-10-17 21:53:47 +09:00
Robert O'Callahan
f8da91f406 Disabling test_resume.html since it apparently fails on Tinderbox 2009-10-15 17:53:00 +13:00
Robert O'Callahan
004c32f502 Fixing test 459439-1.html to not depend on the load event (bug 521359) 2009-10-15 17:51:10 +13:00
Matthew Gregan
42cb272cfa Bug 522418 - Missing mozLoadFrom mochitest. r=roc
--HG--
extra : rebase_source : bda7a6e7bf813eb7e1c54a8550f224b27f37f425
2009-10-15 15:59:41 +13:00
Robert O'Callahan
b8b21b5b8b Bug 518659. Tests should be in gPlayTests instead of gSmallTests. r=kinetik 2009-10-05 17:04:07 +13:00
Robert O'Callahan
98b9d8c4e3 Bug 518659. If we finish decoding while loading metadata, go directly to COMPLETED instead of trying to decode again which violates liboggplay's assumptions. r=kinetik 2009-10-05 17:02:36 +13:00
Robert O'Callahan
8b9cd6bfe0 Bug 521359. Don't enter the NETWORK_LOADED state or fire a media 'load' event. r=doublec 2009-10-10 00:48:55 +13:00
Robert O'Callahan
a373a6c8db Bug 521359. Our tests should not depend on NETWORK_LOADED or the media 'load' event. r=doublec 2009-10-10 00:48:33 +13:00
Robert O'Callahan
d5f8eeb841 Bug 522114. While we're suspending the download, a Web server might close our connection, thinking we're dead. This might look just like a normal connection close. So whenever the connection closes after we resumed, try to reopen it, if we're seekable. r=kinetik 2009-10-15 15:20:49 +13:00
Robert O'Callahan
1689490893 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
Matthew Gregan
d75d34acac Bug 498380 - Remove bogus packet_buffer assert from oggz_close. r=chris.double 2009-10-12 13:07:51 +13:00
Matthew Gregan
3af771c138 Bug 520908 - Use calculated duration from cloned decoder when initializing the clone. r=roc 2009-10-15 14:28:59 +13:00
Chris Pearce
73c9753893 Bug 520500 - Don't reject vorbis streams with 0 length comments. r=doublec 2009-10-14 16:36:01 +13:00
Chris Pearce
a7c8f0eec9 Bug 520493 - Fix regression in Ogg playback. r=doublec 2009-10-14 16:35:59 +13:00
Matthew Gregan
f546868183 Comment-only fix - Update comment on trunk to match bug 493447 patch rebased for 1.9.2. 2009-10-06 16:53:06 +13:00
Matthew Gregan
3c4419b7c9 Bug 507167 and Bug 518941 - Update libvorbis to SVN r16597 to pick up recent fixes. r=chris.double, rs=roc
--HG--
extra : rebase_source : e941bcd256dd233304c6095d9d66ad1a96061ce2
2009-10-05 11:54:13 +13:00
Matthew Gregan
5260624305 Bug 493447 - Shrink Ogg decoder frame queues to 5-10 frames (from 20-40). r=chris.double
--HG--
extra : rebase_source : a6cb4b2d5fd1960ebedd0e42fd753e30717d5728
2009-10-05 11:50:34 +13:00
Chris Pearce
c65a6fdf9a Bug 519155 - reset oggz seek on failure. r=doublec 2009-10-03 17:08:12 +13:00
Chris Pearce
b7720b4c09 Bug 504843 - Abort ogg decode with excessively large video frame sizes. r=doublec 2009-10-03 17:08:12 +13:00
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