Commit Graph

42 Commits

Author SHA1 Message Date
Chris Pearce
9473334bf2 Bug 811381 - Flatten nsMediaDecoder and nsBuiltinDecoder into a single class. r=roc 2012-11-14 11:45:13 -08:00
Ehsan Akhgari
899abd3ff8 Bug 810177 - Part 4: Make nsMediaDecoder not depend on nsHTMLMediaElement; r=cpearce
The basic idea in this patch is to create an MediaDecoderOwner
interface which nsHTMLMediaElement would implement, and put everything
needed by nsMediaDeocder on that interface.  In addition to that,
there are a number of other cleanup patches which enables us to
eliminate many of the nsHTMLMediaElement.h #includes in the media code.
2012-11-09 00:52:53 -05:00
Robert O'Callahan
7b4c5ebb95 Bug 792675. Part 4: Refactor nsBlobURI/nsBlobProtocolHandler to nsHostObjectURI/nsHostObjectProtocolHandler. r=sicking
The code to handle MediaStream URIs is almost the same as for Blobs, so share it.
nsHostObjectProtocolHandler is modified a bit to simplify method names. Also
we make nsHostObjectProtocolHandler::AddDataEntry take responsibility for
generating the URI to avoid duplicating that code later.
We need separate subclasses for each kind of host object protocol handler,
but we don't need separate subclasses for each kind of host object URI.

--HG--
rename : content/base/public/nsBlobProtocolHandler.h => content/base/public/nsHostObjectProtocolHandler.h
rename : content/base/src/nsBlobProtocolHandler.cpp => content/base/src/nsHostObjectProtocolHandler.cpp
rename : content/base/src/nsBlobURI.cpp => content/base/src/nsHostObjectURI.cpp
rename : content/base/src/nsBlobURI.h => content/base/src/nsHostObjectURI.h
extra : rebase_source : bfb1d7ea2813100a35f9a2054a67584e38f5f330
2012-09-25 15:24:44 +12:00
Nick Hurley
e7f284c9d3 Bug 536324 part 3 - Change consumers of nsIChannel. r=sworkman 2012-10-22 10:51:07 -07:00
Matthew Gregan
5991f5abad Bug 795892 - Fix CORS listener refcnt in ChannelMediaResource::OpenChannel. r=roc 2012-10-02 18:03:24 +13:00
Steve Workman
1de10bcca3 Bug 734546: Add DASH Decoders and Readers r=cpearce r=ted 2012-09-29 16:29:04 -07:00
Steve Workman
b2049ebc9e Bug 734546: Add full byte range request ability to ChannelMediaResource r=cpearce 2012-09-29 16:29:04 -07:00
Isaac Aggrey
0cc4b12d36 Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
Ehsan Akhgari
c147ce1e22 Bug 788275 - Part 0: Make nsCORSListenerProxy's constructor not cause the object to be destroyed before it is constructed; r=bzbarsky
That is always a nice property to have!
2012-09-18 22:16:23 -04:00
Ryan VanderMeulen
826e297731 Merge m-c to inbound. 2012-09-05 23:03:09 -04:00
Makoto Kato
507b76f776 Bug 784912 - nsIStreamListener.onDataAvailable should handle 64-bit offset. r=honza 2012-09-06 11:41:02 +09:00
Paul Adenot
f746c93f81 Bug 567077 - Avoid sniffing when recreating a channel. r=cpearce 2012-09-04 17:49:46 -07:00
Ryan VanderMeulen
514aecd0b0 Backout bug 567077 for bustage. 2012-09-05 18:36:38 -04:00
Paul Adenot
4283006604 Bug 567077 - Avoid sniffing when recreating a channel. r=cpearce 2012-09-04 16:24:12 -07:00
Paul Adenot
b79fe150e6 Bug 730765 - Media cache shouldn't be used when loading from blob: urls. r=biesi 2012-09-04 14:53:52 -07:00
Chris Pearce
fbaf1904eb Bug 787805 - Improve correctness and thread safety of FileMediaResource::EnsureSizeInitialized. r=roc 2012-09-04 12:05:41 +12:00
Chris Pearce
0ec7cd264b Bug 787805 - Null check mInput in FileMediaResource::EnsureLengthInitialized(). r=roc 2012-09-03 16:12:23 +12:00
Randell Jesup
29ac5c0b8c Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Chris Pearce
5757534b7c Bug 785909 - Don't init FileMediaResource::mSize on the main thread. r=roc 2012-08-29 15:55:57 +12:00
Chris Double
f02292c9f4 Backout bug 730765 Part 3/3
--HG--
extra : rebase_source : 2aadbb2419cceeac30bd95484e37ab905525662f
2012-08-24 00:12:53 +12:00
Chris Double
af6a76cff2 Backed out changeset 5583ccdfea18 2012-08-23 22:42:14 +12:00
Paul Adenot
1fb050e013 Bug 730765 - Media cache shouldn't be used when loading from blob: urls. r=biesi 2012-08-21 16:00:23 -07:00
Ryan VanderMeulen
15bd519dbe Backout 3ce94808577b, 56f288230d5a, and 18ff170ecb1f (bug 730765) for bustage. r=fail 2012-08-21 18:45:54 -04:00
Paul Adenot
e7f75f1f49 Bug 730765 - Media cache shouldn't be used when loading from blob: urls. r=biesi 2012-08-15 10:36:12 -07:00
Paul Adenot
29b17248c6 Bug 762282 - Don't notify the HTMLMediaElement if we reach the end of the media while seeking for metadata. r=chris.double 2012-08-17 10:01:08 -07:00
Aryeh Gregor
982100775b Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Honza Bambas
5fe7a22e2c Bug 215450: Allow uploading of files greater than 2gb in size. Involves making input streams 64-bit capable. Significant work done by Makoto Kato, finished by Honza Bambas. r=hbambas,bsmedberg,jdrew,sicking 2012-08-10 22:44:11 -04:00
Ehsan Akhgari
8c296bbcd4 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Ed Morley
a9fda23889 Backout ec46cfa51bf8, 4a54f06efee8, de811fbd27b0 & 67ea1314c777 (bug 567077) for causing bug 781141 2012-08-08 13:11:34 +01:00
Paul Adenot
73eea5d7e2 Bug 567077 - Avoid sniffing when recreating a channel. r=cpearce 2012-08-07 15:56:01 -07:00
Aryeh Gregor
2e7996f8d1 Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan 2012-07-27 16:59:29 +03:00
Aryeh Gregor
57c0ad57fb Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Matthew Gregan
fac533dad5 Bug 774901 - Don't recreate MediaResource channel during seek if resource is still suspended. r=roc
--HG--
extra : rebase_source : d6ee9bbc3b5705ca9006a7e0723021be5230fb52
2012-07-25 17:50:13 +12:00
David Zbarsky
cd3c58ee76 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Abhishek Bhatnagar
9d5a0d7a05 Bug 500784 - Video/Audio files over 2^31 bytes now return proper durations; r=cpearce
--HG--
extra : rebase_source : 219872db85890a3358456dde226a29595e738f1b
2012-05-31 14:33:15 +12:00
Chris Double
8aee98e28b Bug 758481 - When seeking in an unbuffered range after having ended a media, networkState is NETWORK_IDLE r=chris.double
--HG--
extra : rebase_source : e62887187ed20ad6e832bd0211c50392759bb321
2012-05-31 14:30:23 +12:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Robert O'Callahan
54a29c01d8 Bug 664918. Part 8: Add mozCaptureStream()/mozCaptureStreamUntilEnded() APIs to HTML media elements, returning a MediaStream representing the contents of the media element. r=cpearce,jesup
This is currently not fully functional. The MediaStream always ends when the underlying resource ends. You can't use these APIs on a media element
whose src is a MediaStream. Seeking or pausing the resource will cause problems. The media element does not play back in sync with the MediaStream.
2012-04-30 15:12:42 +12:00
Nathan Froyd
f951079eae Bug 739962 - fix -Wunused-but-set-variable warnings in content; r=bent 2012-03-28 09:14:33 -04:00
Robert O'Callahan
437f35ed2a Bug 712836. Make MediaResources which have ended abnormally ineligible for cloning. r=cpearce 2012-03-20 20:55:40 +13:00
Matthew Gregan
b4bd6bbd9d Bug 634564 - Don't reset load-in-background flag when moving completed media load into the foreground. r=cpearce 2012-02-24 14:07:35 +13:00
Robert O'Callahan
ad4c67538b Bug 726889. Rename nsMediaStream/nsMediaChannelStream/nsMediaFileStream to mozilla::MediaResource/ChannelMediaResource/FileMediaResource. Also rename nsByteRange to mozilla::MediaByteRange and nsChannelStatistics to mozilla::MediaChannelStatistics. Rename GetStream to GetResource and various other mentions of 'stream' to 'resource'. r=cpearce
--HG--
rename : content/media/nsMediaStream.cpp => content/media/MediaResource.cpp
rename : content/media/nsMediaStream.h => content/media/MediaResource.h
2012-02-15 17:35:01 +13:00