Commit Graph
331 Commits
Author SHA1 Message Date
Bill McCloskey c402a046c2 Bug 1363560 - Name more runnables (r=mccr8)
MozReview-Commit-ID: 3hxZDA4JlTV
2017-05-09 21:53:25 -07:00
Andreas Pehrson 6f4127973c Bug 1342950 - Assert false, not true, on failure in debug. r=jesup
MozReview-Commit-ID: EQ9NESBhRdK
2017-04-26 14:02:09 +02:00
Jan-Ivar Bruaroey 83de036235 Bug 1354642 - Add MakeRefPtr<> helper class. r=Ehsan
MozReview-Commit-ID: es34uMTZ00
2017-04-07 15:08:42 -04:00
Paul Adenot fb31129fa6 Bug 1341666 - Allow running a close message during an MSG shutdown. r=jesup
MozReview-Commit-ID: Hqg0porLEXT
2017-03-20 16:25:19 +01:00
Tom Tromey a4b717ab39 Bug 1060419 - make log_print use Printf.h, r=froydnj
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07:00
Bill McCloskey f79edeabc9 Bug 1339289 - Give names to a lot of common runnables (r=ehsan)
MozReview-Commit-ID: 5IdvK6kgoAW
2017-02-15 12:30:01 -08:00
Paul Adenot 09edbc0cfe Bug 1336945 - Modernize MSG/GraphDriver logging. r=jesup
MozReview-Commit-ID: 5Redgg5uaQG
2017-02-06 16:22:36 +01:00
Jean-Yves Avenard fa1fcd710b Bug 1319987: P9. More coding style fixes. r=gerald
MozReview-Commit-ID: DhFRqkWQZny
2017-01-27 13:20:37 +01:00
Bevis Tseng d028a1f078 Bug 1314833 - Part 2.2: Use AbstractThread::CreateDirectTaskDrainer() to Drain Direct Tasks Dispatched to MediaStreamGraph. f=rjesup,r=padenot,jwwang
MozReview-Commit-ID: 1KgE3uKu4CG
2016-12-07 22:00:12 -10:00
Randell Jesup 4d2f5e8b5a Bug 1330212: Release GraphDrivers outside of StableState runnable to avoid spinning the event queue r=smaug,padenot 2017-01-13 13:54:20 -05:00
Paul Adenot 5e27fd0949 Bug 1228226 - Backed out changeset 2553c3b5ba89.
This causes a number of issues, like bug 1329082, where we don't swap the
message queues of the MSG where we should, and blows up an assert in debug.

MozReview-Commit-ID: 2I3IjfK8L8r
2017-01-13 16:15:27 +01:00
Andreas Pehrson 87c3da2e52 Bug 1305949 - Use the same path for passing on missed data to video sink, as during normal operation. r=ctai
MozReview-Commit-ID: FDKFf1skYVe
2016-10-13 11:18:53 +02:00
Andreas Pehrson 1c2c6092bf Bug 1305949 - Refactor code that feeds video stream sink when it gets added. r=ctai
This mostly simplifies the code, but there are two changes to the logic as well.

1) The decision to install the listener or not used to be based on if the track
   existed in mUpdateTracks, while feeding the sink would look at the
   StreamTracks as well. This now looks at StreamTracks since an ended track is
   kept there but removed from mUpdateTracks. That means that we also
   NotifyEnded() if the track was in the StreamTracks but not in mUpdateTracks.

2) I removed the code that feeds a video stream sink with the last chunk in
   case the graph's current time has passed the end of the track. Tests should
   be written so that we have guarantees that there will be video data when a
   video stream sink gets added. If this fails we should fix the root cause of
   such a timing issue instead of wallpapering it with an old frame. I think
   this could be masking other issues. We'll see how this acts out on try.

MozReview-Commit-ID: KKr9JhVpxZt
2016-09-28 16:12:20 +02:00
Andrea Marchesini 4990e5c72d Bug 1324352 - Implement BaseAudioContext, r=padenot 2016-12-21 10:52:50 +01:00
Sebastian Hengst 284d84177a Backed out changeset 50a74758ee7d (bug 1324352) for failing webaudioeditor devtools tests like test/browser_audionode-actor-bypass.js. r=backout 2016-12-20 23:03:36 +01:00
Andrea Marchesini a26b7bb27c Bug 1324352 - Implement BaseAudioContext, r=padenot 2016-12-20 20:20:41 +01:00
Dan Minor daee673a83 Bug 1172997 - Track suspended MediaStream inputs separately to optimize input processing; r=karlt
MozReview-Commit-ID: Id7vVSCFO76
2016-08-24 13:04:33 -04:00
Dan Minor b9583e3f83 Bug 1157635 - Use DenormalDisabler.h to automatically flush subnormals; r=karlt
This adds a DenormalDisabler instance at the beginning of each
MediaStreamGraph iteration. On supported platforms, this will cause subnormal
numbers to be flushed automatically.

MozReview-Commit-ID: JGtunsqSirR
2016-08-05 15:33:08 -04:00
Alex Chronopoulos f8a679a251 Bug 1221574 - [05] Fix MediaStreamGraph lifecycle logs in case of Android. r=jesup
MozReview-Commit-ID: czoHOOCqSu
2016-11-18 18:00:48 +02:00
Alex Chronopoulos 6831c8ec23 Bug 1221574 - [02] Fix build erros with the new backend. r=jesup
MozReview-Commit-ID: n27saMBWfw
2016-11-18 18:00:48 +02:00
Andreas Pehrson c93dc674e4 Bug 1302612 - SourceMediaStream: Don't lock mMutex when disconnecting consumers. r=jesup
MozReview-Commit-ID: 7F4BXQbzUSx
2016-10-24 07:46:21 +02:00
Dan Minor 12fa7cdc24 Bug 1228226 - Fix clicks with new playing AudioContext; r=padenot
When switching from the SystemClockDriver to another driver, for instance,
during a page reload or reopening a closed tab, the first iteration will
execute on the SystemClockDriver which can cause clicking when the switch
actually occurs if part of the ramp up is lost. This changes the iteration
time period so that no time advances when a switch from the SystemClockDriver
is in progress.

MozReview-Commit-ID: 8uEBsJc0vPR
2016-09-26 14:04:56 -04:00
Paul Adenot 422f64230d Bug 1302817 - r=jesup
MozReview-Commit-ID: 7uKiDvw1yf0
2016-09-22 09:29:50 +01:00
Randell Jesup 79f64a92fd Bug 1255737: Move MSG shutdown max-timeout from just only cubeb shutdown to the entire graph r=padenot
Effectively backs out the previous landing for bug 1255737

MozReview-Commit-ID: 37QfhATw8wU
2016-10-02 13:51:40 -04:00
Matthew Gregan 1d16ad0f94 Bug 1303083 - Make CubebUtils::PreferredSampleRate handle InitPreferredSampleRate failures. r=padenot 2016-09-18 16:32:22 +12:00
ctai 509950bb1d Bug 1291946 - Append the latest video frames from updateTracks. r=pehrsons
In some cases, we need to resend missed VideoSegment to new added MediaStreamVideoSink. Append the latest video frames from updateTracks.

MozReview-Commit-ID: 76RFs5fgKpY
2016-08-10 10:31:14 +08:00
Nicholas Nethercote b5810a1eb4 Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm.
This change avoids lots of false positives for Coverity's CHECKED_RETURN
warning, caused by NS_WARN_IF's current use in both statement-style and
expression-style.

In the case where the code within the NS_WARN_IF has side-effects, I made the
following change.

> NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
> -->
> Unused << NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));

In the case where the code within the NS_WARN_IF lacks side-effects, I made the
following change.

> NS_WARN_IF(!condWithoutSideEffects);
> -->
> NS_WARNING_ASSERTION(condWithoutSideEffects, "msg");

This has two improvements.
- The condition is not evaluated in non-debug builds.
- The sense of the condition is inverted to the familiar "this condition should
  be true" sense used in assertions.

A common variation on the side-effect-free case is the following.

> nsresult rv = Fn();
> NS_WARN_IF_(NS_FAILED(rv));
> -->
> DebugOnly<nsresult rv> = Fn();
> NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Fn failed");
2016-09-02 17:12:24 +10:00
Andreas Pehrson 70d48dcde6 Bug 1299172 - Assert on MSG thread in DispatchToMainThreadAfterStreamStateUpdate. r=jesup
MozReview-Commit-ID: 9ihJduZOSa
2016-08-31 14:07:53 +02:00
Wes Kocher 00c5aee754 Merge inbound to central, a=merge 2016-08-25 16:59:00 -07:00
Ryan VanderMeulen dbf61a2219 Merge m-c to autoland. a=merge 2016-08-25 08:14:36 -04:00
Randell Jesup de99c33527 Bug 1255737: don't set a shutdown timer if we don't have a shutdown ticket r=pehrsons 2016-08-24 12:24:17 -04:00
Andreas Pehrson fada6356cc Bug 1259788 - Implement disabled track modes for direct track listeners. r=jesup
MozReview-Commit-ID: H8TygONnCiv
2016-08-23 18:05:51 +02:00
Andreas Pehrson 2d5667b427 Bug 1259788 - Add a new disabled mode for MSG tracks. r=jesup
MozReview-Commit-ID: 1dMTR4Wmcd8
2016-08-15 14:19:42 +02:00
Nicholas Nethercote 1009bf0056 Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.

The patch also does some associated clean-up.

- Replaces some uses of nsIMemoryReporterCallback with the preferred
  nsIHandleReportCallback typedef.

- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
  parameter names, for consistency.

- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.

- Uses the MOZ_COLLECT_REPORT macro in all suitable places.

Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.
2016-08-24 15:23:45 +10:00
Kan-Ru Chen a9b19d0584 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Randell Jesup 503506ec86 Backed out 3 changesets 74668b4ab3ea c612cd6788e0 418acf685ec2 (bug 1255737) for shutdown leaks
on a CLOSED TREE
2016-08-23 17:11:18 -04:00
Randell Jesup 7a4f63d2b6 Bug 1255737: downgrade NS_ASSERTION to NS_WARNING due to linux32 VMs rs=bustage
on a CLOSED TREE
2016-08-23 14:50:47 -04:00
Randell Jesup b03ec339ce Bug 1255737: don't wait more than 15 seconds for an AudioCallbackDriver to exit r=pehrsons
Avoids running into the stalled-shutdown killer if the audio driver/OS is stupid

MozReview-Commit-ID: 58SUg2Xt37C
2016-08-23 12:47:45 -04:00
Randell Jesup fd65174057 Bug 1293976: make mAudioInputs use RefPtrs r=pehrsons 2016-08-17 16:31:56 -04:00
Wes Kocher 1a4588f6f6 Backed out changeset 9e24eb751c21 (bug 1291946) for android debug mda1 failures CLOSED TREE 2016-08-16 12:22:20 -07:00
ctai 9a135c801f Bug 1291946 - Append the latest video frames from updateTracks. r=jesup, r=pehrsons
In some cases, we need to resend missed VideoSegment to new added MediaStreamVideoSink. Append the latest video frames from updateTracks.

MozReview-Commit-ID: 76RFs5fgKpY
2016-08-10 10:31:14 +08:00
Nicholas Nethercote 1f65390cc9 Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
2016-08-08 12:18:10 +10:00
ctai 0ee3adf86d Bug 1201363 - Do not copy video segment to StreamTracks in TrackUnionStream. r=jesup
Now everything is ready. We can make NotifyQueuedTrackChanges only triggered by TRACK_EVENT_CREATED and TRACK_EVENT_ENDED without breaking anything. Also we make TrackUnionStream no longer copying data in video case.

MozReview-Commit-ID: IgLx1mpBWB3
2016-05-31 18:05:11 +08:00
ctai a60d7411e6 Bug 1201363 - Call MediaStreamVideoSink::setCurrentFrames in SourceMediaStream::AppendToTrack. r=jesup
In this patch, we first deal with the case of MediaElement. Now we replace |PlayVideo| with |VideoFrameContainer::SetCurrentFrames| in |SourceMediaStream::AppendToTrack|. The MSG use TimeStamp::Now() for the TimeStamp of each video frame in most of case except MediaElement case. Becasue the MediaElement has its own VideoQueue, we need to calucalte the correct Timestamp based on the StartTimeStamp of this MediaStream and the elpased time of the video frame in DecodedStream.

MozReview-Commit-ID: 2bm2AHkFXHu
2016-07-25 10:01:26 +08:00
ctai 1cc009caa8 Bug 1201363 - Register MediaStreamVideoSink into SourceMediaStream. r=jesup
MozReview-Commit-ID: 7X546VXVLJT
2016-05-30 11:32:23 +08:00
ctai b3c60037ff Bug 1201363 - Let MediaStreamVideoSink bind with particular video track. r=jesup
MozReview-Commit-ID: FcjnmDKuRQI
2016-05-27 14:33:50 +08:00
ctai 56fe08b4fc Bug 1201363 - Replace VideoFrameContainer with MediaStreamVideoSink in MSG. r=jesup
Replace the pointer of VideoFrameContainer with the pointer of MediaStreamVideoSink.

MozReview-Commit-ID: 5bqEMpemwuR
2016-05-27 14:33:48 +08:00
Sebastian Hengst 3704bef2fd Backed out changeset 3851902daa94 (bug 1201363) 2016-08-03 19:33:25 +02:00
Sebastian Hengst 686ee0465e Backed out changeset 263cc3ad83c2 (bug 1201363) 2016-08-03 19:33:25 +02:00
Sebastian Hengst 13f433f34a Backed out changeset 91e5ccbeef19 (bug 1201363) 2016-08-03 19:33:25 +02:00