Commit Graph

2450 Commits

Author SHA1 Message Date
Martijn Wargers
7f63b0ec1a Bug 898696 - Fix some content/media test files by adding preload=metadata to media element. r=cpearce 2013-07-31 09:35:44 +02:00
Shelly Lin
f9bc5baa95 Bug 895730 - AudioTrackEncoder should handle the case where audio chunk is null. r=roc 2013-07-31 12:21:29 +08:00
Shelly Lin
2e2b0af1b7 Bug 894341 - Stop encoding data when the eos flag has written to ContainerWriter. r=roc 2013-07-29 14:29:08 +08:00
Ehsan Akhgari
085494b95d Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:

# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type

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 "*.cc" \
         -o -iname "*.mm" \) | \
    xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
                   media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
                   modules/libmar/src/mar_private.h \
                   modules/libmar/src/mar.h


# assert_replacer.py
#!/usr/bin/python

import sys
import re

pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")

def replaceInPlace(fname):
  print fname
  f = open(fname, "rw+")
  lines = f.readlines()
  for i in range(0, len(lines)):
    while True:
      index = re.search(pattern, lines[i])
      if index != None:
        index = index.start()
        lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
        for j in range(i + 1, len(lines)):
          if lines[j].find("                 ", index) == index:
            lines[j] = lines[j][0:index] + lines[j][index+4:]
          else:
            break
      else:
        break
  f.seek(0, 0)
  f.truncate()
  f.write("".join(lines))
  f.close()

argc = len(sys.argv)
for i in range(1, argc):
  replaceInPlace(sys.argv[i])

--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Ehsan Akhgari
3717325909 Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted 2013-07-30 10:25:31 -04:00
Paul Adenot
2c94d0b2f4 Bug 895720 - Actually use the fuzz value. 2013-07-30 11:10:33 +01:00
Paul Adenot
a33021b0b3 Bug 895720 - On MacOS, increase the fuzz factor for test_audioBufferSourceNodeOffset.html. 2013-07-30 11:06:33 +01:00
Nicolas Silva
2b6a0c31a2 Bug 858914 - New texture classes + OGL backend (preffed off). r=bas, nrc 2013-07-30 11:59:51 +02:00
Ed Morley
9243c1b657 Backed out changeset 0ad406a69f2c (bug 856361) for mochitest-1 failures in test_mediaElementAudioSourceNode.html on a CLOSED TREE 2013-07-29 09:56:06 +01:00
Ed Morley
0903e2af97 Backed out changeset 3f2c0edda4c2 (bug 856361) 2013-07-29 09:55:15 +01:00
Ed Morley
c9d0e6b7f2 Backed out changeset f211d6754796 (bug 856361) 2013-07-29 09:55:12 +01:00
Ed Morley
29f1f1c74b Backed out changeset 2af84c01ac0c (bug 856361) 2013-07-29 09:55:09 +01:00
Ed Morley
910ec19dd4 Backed out changeset 9e90a81b9e37 (bug 856361) 2013-07-29 09:55:06 +01:00
Ed Morley
d3f9d8e0ba Backed out changeset 3d6f6f06da5e (bug 856361) 2013-07-29 09:55:03 +01:00
Ed Morley
578087bb22 Backed out changeset 911a11878522 (bug 855568) 2013-07-29 09:55:01 +01:00
Ed Morley
9dce8cb0fe Backed out changeset 3fbe86d67b6a (bug 856361) 2013-07-29 09:54:58 +01:00
Ed Morley
e23310cad6 Backed out changeset f7496fddb076 (bug 856361) 2013-07-29 09:54:52 +01:00
Robert O'Callahan
24bd270877 Bug 856361. Fix test bustage. r=me
--HG--
extra : rebase_source : fe7a3854f521518f80c3ae8d70bae13eadfca3b7
2013-07-29 16:56:36 +12:00
Robert O'Callahan
89f722607a Bug 856361. Part 7: Address review comment. r=ehsan 2013-07-29 15:09:48 +12:00
Ehsan Akhgari
570b52a11a Bug 855568 - Implement MediaElementAudioSourceNode. r=roc
--HG--
extra : rebase_source : f6b44a0400aeaa6a2075d16a3196f3db13d0afb5
2013-07-25 15:01:49 +12:00
Robert O'Callahan
8b83880fa4 Bug 856361. Part 6: Make MediaStreamAudioSourceNode keep its DOMMediaStream alive, and make the DOMMediaStream keep the MediaStreamAudioSourceNode alive. r=ehsan
--HG--
extra : rebase_source : b7172f79fbf0cacaaf10f812444444ba17ad00e9
2013-07-25 14:07:34 +12:00
secretrobotron
8f02d85140 Bug 856361. Part 5: Implement MediaStreamAudioSourceNode. r=ehsan
--HG--
extra : rebase_source : ee1a8c2dc39574aeb6165a063553489f08d19380
2013-07-24 23:29:39 +12:00
Robert O'Callahan
36cf03dce0 Bug 856361. Part 4: Create AudioNodeExternalInputStream. r=ehsan
--HG--
extra : rebase_source : 6e172f800942b0f9f1aff047a142764da2dd57a3
2013-07-24 22:15:11 +12:00
Robert O'Callahan
126382b197 Bug 856361. Part 3: Refactor AudioNodeStream to create ComputeFinalOuputChannelCount, AccumulateInputChunk and AdvanceOutputSegment, and make AudioNodeStreams be treated as always consumed by the MediaStreamGraph. r=ehsan
--HG--
extra : rebase_source : 3c1fe8769dc616d0ea70f00e41d6952346ead491
2013-07-24 22:11:35 +12:00
Robert O'Callahan
0bcfa0b5cc Bug 856361. Part 2: Block data from a non-same-origin media resource entering a MediaStream from a media element. r=cpearce
--HG--
extra : rebase_source : fd0ac711b6be627b87634b5a6c518c82ffd46448
2013-07-24 21:55:23 +12:00
Robert O'Callahan
0c0de93e83 Bug 856361. Part 1: Fix documentation of MediaInputPort flags. r=jesup
--HG--
extra : rebase_source : 509fc344912aa6da728ad8dd10398ae501921ebb
2013-07-17 15:16:09 +12:00
Chris Pearce
50e8d08a10 Bug 846769 - OggReader::SeekBisection() should use granule end times, not start times. r=rillian 2013-07-29 10:03:21 +12:00
Chris Pearce
89003737e2 Bug 846769 - Mark Ogg frames with MediaResource offset, instead of (incorrectly) trying to infer and then use the offset of pages. r=rillian 2013-07-29 10:03:06 +12:00
Ryan VanderMeulen
95c899b5cd Bug 894941 - Increase fuzz tolerance for the small-shot.ogg mediaDecoding test to resolve a CLOSED TREE. 2013-07-26 15:17:34 -04:00
Ryan VanderMeulen
ba5199d8de Merge m-c to inbound. 2013-07-26 14:20:01 -04:00
Ryan VanderMeulen
c1de6c1439 Backed out changesets f2862e93b710, 4fe81f58dbef, and f8f855f0b7dc (bug 896353) for mochitest-1 asserts. 2013-07-26 14:08:29 -04:00
Martijn Wargers
a14788acd3 Bug 896582 - Implement a workaround to bug 838726 to get a bunch of content/media mochitests running on B2G. r=jgriffin 2013-07-25 22:32:17 +02:00
Randy Lin
a4a5e87045 Bug 896353 - Media Recording - Test case for record the MediaStream from audioContext. r=jsmith 2013-07-26 10:47:56 +08:00
Randy Lin
2de1bb6588 Bug 896353 - Media Recording - Can't record the mediaStream created by AudioContext. r=roc 2013-07-26 20:29:41 +08:00
JW Wang
80ae7609e9 Bug 896353 - Set principal for mDOMStream in MediaStreamAudioDestinationNode. r=roc. 2013-07-23 11:54:32 +08:00
Ed Morley
4cc671a850 Merge mozilla-central and birch 2013-07-25 17:05:50 +01:00
Ryan VanderMeulen
e38bf89d75 Backed out changesets 73188e11f7b1 and 7111c04c1158 (bug 896353) for mochitest-1 crashes. 2013-07-25 10:31:48 -04:00
Randy Lin
1a230903ad Bug 896353 - Media Recording - Can't record the mediaStream created by AudioContext. r=roc 2013-07-24 18:01:52 +08:00
JW Wang
6ea2aee300 Bug 896353 - Set principal for mDOMStream in MediaStreamAudioDestinationNode. r=roc 2013-07-23 11:54:32 +08:00
Randy Lin
bf14bb2a23 Bug 896303 - Media Recording - Calling start on a MediaRecorder object with no parameters results in ondataavailable events firing even though they shouldn't be. r=roc 2013-07-24 17:26:17 +08:00
Paul Adenot
3acf11a5f9 Bug 882543 - Use a linked list for ordering stream instead of an array. r=ehsan 2013-07-19 16:40:58 +02:00
Paul Adenot
8379599843 Bug 882543 - Register the MSG thread for in the profiler. r=benwa 2013-07-19 16:40:57 +02:00
Paul Adenot
a5bb1bd5f0 Bug 882543 - Don't spam the main thread when rendering an offline graph. r=ehsan,roc 2013-07-19 16:40:57 +02:00
Paul Adenot
b25740a375 Bug 882543 - Actually run offline MSG offline. r=roc 2013-07-19 16:40:57 +02:00
Paul Adenot
e20eef1de9 Bug 882543 - Retain storage for media streams accross iterations instead of reallocating. r=jlebar,roc 2013-07-19 16:40:56 +02:00
Peter Chang
1dcb6e83b0 Bug 894262 - Merge GonkIOSurfaceImage to GrallocImage, r=nical, kanru 2013-07-25 10:13:35 +08:00
Ryan VanderMeulen
ece161737c Merge m-c to inbound. 2013-07-24 18:27:51 -04:00
Sotaro Ikeda
a332d766ca Bug 896374 - Fix infinite loop in MediaResourceManagerService::cancelClientLocked(). r=doublec 2013-07-24 08:55:30 -04:00
Ms2ger
8ab83f380e Merge m-c to inbound. 2013-07-24 11:53:22 +02:00
Ms2ger
5ae654e2b6 Bug 885170 - Remove nsINode::GetClassInfo(); r=peterv 2013-07-24 09:31:06 +02:00