Commit Graph

55867 Commits

Author SHA1 Message Date
Dario Casalinuovo
9f2deec26f AdapterIO: Seeking and flags access improvements
* Backend seeking is done only if explictly requested in
BAdapterIO Seek.
2016-07-03 15:28:06 +02:00
Dario Casalinuovo
d3630cbaec http_streamer: Refine init, set static timeout
* When in Open() the plugin wait for the first buffer
or return an error if timeout expires.
* Make size retrieve more reliable.
2016-07-02 21:19:27 +02:00
Dario Casalinuovo
3ad928de3f BAdapterIO: Refine size inheritance
* Wait evaluation is done considering both position
and buffer size.
* Set back position to 0 after seeking.
* Simplify EvaluatePosition to take advantage of inheritance.
* Use back position to determine the current size of the buffer.
* Add more debug tracing.
* Other minor fixes.
2016-07-02 21:19:27 +02:00
Dario Casalinuovo
dc0aa64fb0 MediaPlayer: Make window modal and center on screen 2016-07-02 21:19:27 +02:00
Jérôme Duval
e3d81394b6 XHCI: whitelist 0x9c31 Haswell/Panther Point.
* works nicely (~150 MB/s, 22GB read in about 145s, Linux does 410MB/s).
* also tested Fresco Logic FL1009 OK, but segfaults seem to happen once in a while.
2016-07-01 15:31:53 +02:00
Jérôme Duval
5c3f988250 listusb: fix 64-bit warnings. 2016-07-01 15:09:16 +02:00
Alexander von Gluck IV
30d631c821 radeon_hd: Add new Polaris GPU, untested 2016-06-30 15:09:59 -05:00
Alexander von Gluck IV
c9e6b4e096 jam: Extend wget wait
* I shrunk this down, but it seems like packages.haiku-os.org
  is taking an long time to access some packages (>10 sec)
* This should help relability of package downloads until
  someone checks out why connections take so long
2016-06-30 15:09:17 -05:00
Dario Casalinuovo
8331697602 MediaPlayer: Remove forgot printfs 2016-06-30 17:00:35 +02:00
Dario Casalinuovo
1acb1f504d Style fixes 2016-06-30 16:54:40 +02:00
Dario Casalinuovo
93a1f9d274 http_streamer: Sync with BAdapterIO changes 2016-06-30 16:54:40 +02:00
Dario Casalinuovo
345dba5416 AdapterIO: Further development of the interface
* Implement Open/Close mechanism.
* Implement SetBuffer.
* Implement timeout handling.
* Improve Seek mechanism, this is now working by locking the
thread until the backend call SeekCompleted.
2016-06-30 16:54:40 +02:00
Dario Casalinuovo
92cb0c5d18 MediaPlayer: Add GUI to open network streams 2016-06-30 16:54:40 +02:00
Dario Casalinuovo
70efd0db0a MediaPlayer: Avoid to recreate the supplier more than needed
* MediaPlayer attempted to recreate each time the media supplier(s),
and implictly it recreated also the BMediaFile. This works fine with
local data that can be accessed fastly, but makes lots of troubles
with network streams such as BMediaIO. The result of this was that
the Streamer plugin has been recreated each time having memory and
network wasted other than performances.
* I tried to keep intact the previous logic, and it looks OK for me,
this has been done by moving out of the Controller the ownership of
the TrackSupplier and adding a little utility class that do the
releasing job previously done by the ObjectDeleter.
* Reviews are appreciated.
2016-06-30 16:54:40 +02:00
Jérôme Duval
936696c78a XHCI: fix handling of transfer events.
* previously processing of transfer began when an event on the transfer descriptor happened. Now wait until the last TRB to be processed to process and free the descriptor. Chains are probably not handled correcly yet, but usual transfers happen on a single TD.
* use a specific link pointer for transfer descriptor chains.
* tested on VirtualBox passthrough with mounting an external SSD enclosure. It doesn't scale well with SMP: 1CPU ~115MB/s, 2CPU ~65MB/s, 4 CPU ~50MB/s.
* whitelist controller Intel product ID 0x1e31 (found on VB5).
2016-06-30 12:16:58 +02:00
Automatic Committer
089305fcdc Update usb.ids from www.linux-usb.org 2016-06-30 05:20:22 +02:00
Automatic Committer
b493343212 Update pci.ids from pciids.sourceforge.net 2016-06-30 05:20:21 +02:00
Murai Takashi
d179e1fb74 PairsView.cpp: Fix mismatching alloc and dealloc
Fixes #12834

Signed-off-by: John Scipione <jscipione@gmail.com>
2016-06-29 11:17:07 -07:00
Murai Takashi
fc1d8972ac cddb_server.cpp: fix clang warnings
Since 'port' is int32, use INT32_MAX and INT32_MIN
instead of LONG_MAX and LONG_MIN.

Signed-off-by: Dario Casalinuovo <b.vitruvio@gmail.com>
2016-06-27 23:31:11 +02:00
Murai Takashi
7627095fb0 multi.cpp: Fix clang warnings.
Signed-off-by: Dario Casalinuovo <b.vitruvio@gmail.com>
2016-06-27 23:31:04 +02:00
Murai Takashi
c22c7edb58 PeakView.h: fix header guard spelling
Signed-off-by: Dario Casalinuovo <b.vitruvio@gmail.com>
2016-06-26 14:21:01 +02:00
Dario Casalinuovo
241a32926b http_streamer: Handle Run() failed 2016-06-25 13:46:56 +02:00
Dario Casalinuovo
4dd09daff7 Streaming: Use const reference in place of copying
* Thanks to Markus for reporting.
2016-06-25 01:13:10 +02:00
Dario Casalinuovo
7f28cdba0c http_streamer: Check request after creation
* Thanks to DeadYak for the help.
2016-06-24 23:02:35 +02:00
Dario Casalinuovo
0ba82236bd Streaming: Remove any pointer BUrl argument
* There's no need to pass BUrl by pointer, this is
potentially dangerous and leaky without any advantage,
copying is definitely safer.
2016-06-24 19:00:38 +02:00
Automatic Committer
43a03ceb4a Update pci.ids from pciids.sourceforge.net 2016-06-23 05:20:17 +02:00
Dario Casalinuovo
40dca224fc http_streamer: Style fixes and cleanup 2016-06-23 00:38:50 +02:00
Dario Casalinuovo
f1c771f8d1 HTTPMediaIO: Implement SetSize and GetSize
* SetSize requests are denied where GetSize return the request
lengths. Note that flags are changed accordingly.
2016-06-23 00:38:33 +02:00
Dario Casalinuovo
bcab157e9d AdapterIO: Size could be 0
* Also avoid seeking completely when we are sure
we have to block.
2016-06-23 00:38:33 +02:00
Dario Casalinuovo
6b697577fe AdapterIO: Add debug 2016-06-23 00:38:33 +02:00
Dario Casalinuovo
b13f52bf20 RTSPMediaIO: Improve thread control
* Instead to exit the thred we will wait until the live555
eventLoop quits peacefully.
* Better error handling.
* Implement SetSize as a not supported operation.
2016-06-23 00:38:33 +02:00
Dario Casalinuovo
6903cf9bda AdapterIO: Increase consistency
* Moved data locking in the internal buffer class, includes handling
of backend writes.
* Takes advantage of inheritance for getting the size. The choice is
made depending on the flags. This allow the implementer to easily
return a custom size by reimplementing GetSize. At the same time
a plain BAdapterIO can still have it's total size set, but the behavior
will change depending it's mutable or not.
* Some decisions are now made by considering everything in absolute
values.
* Other minor fixes.
2016-06-23 00:38:33 +02:00
Dario Casalinuovo
ad89985e7e PluginManager: Assign the BBufferIO pointer 2016-06-23 00:38:33 +02:00
Dario Casalinuovo
d56f636bf4 ape_reader: Refuse to work on streaming data
* The MACLib try to find the APE_DESCRIPTOR in the whole file, this
will not work for streams with a finite size.
2016-06-23 00:38:33 +02:00
Dario Casalinuovo
59ff587d70 Style fixes 2016-06-23 00:38:33 +02:00
Mark Hellegers
e1c98ceaf7 Add support for TLS SNI
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-06-20 19:42:24 -04:00
Augustin Cavalier
82f44f2db1 libbe_build: Fix the new "network" Jamfile.
Was introduced in fa2dd9c45f, but was
causing weird problems (leaving stray '.o's around the tree.) The problem
was that it didn't have a space before the semicolon on the "SubDir" line,
which also ate the following UseHeaders directive, which also meant
that running "jam" inside a subdirectory was broken between that commit
and this one.
2016-06-19 19:11:50 -04:00
looncraz
311c913251 WebPositive: Fix icon background.
Due to a minor change in the handling of default colors with layouts, the
colors were adopting the system/parent colors due to no colors being
specified by the class.

The icon now adopts the document background color and synchronizes with the
url input background.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Fixes #12672. I've had this patch in my inbox for a long time, and totally
forgot about committing it...
2016-06-19 18:51:46 -04:00
Murai Takashi
9ff9025759 XHCI: Increase fScratchpadCount size
* To fix clang's '-Wtautological-constant-out-of-range-compare' warnings in xhci.cpp.
* by korli: adjust trace print macro.
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2016-06-19 11:52:18 +02:00
Jeroen Oortwijn
ef9b129675 bfs_fuse: Allow non-root to mount BFS partitions.
* Most FUSE options are only allowed for root, so don't add these options
  when user is not root.
* Fixes ticket #8254.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Coding style looks OK to me and there are multiple comments that
it works, so just merging it.
2016-06-18 22:11:21 -04:00
Augustin Cavalier
73e180c9b9 Revert "cppunit: Enable elf symbol patching for Haiku."
This reverts commit 56430ad800.

It builds on my machine, but apparently the buildbots choke on it...
2016-06-18 18:57:48 -04:00
Andrew Lindesay
fa2dd9c45f BPackageInfo::Parser: Validate URL strings.
Fixes #12710.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
I fixed the modifications to the Jamfiles in src/bin, they were all wrong
in the patch.
2016-06-18 18:40:07 -04:00
Augustin Cavalier
a4f86e7f78 .gitignore: Ignore .DS_Store (Mac OS X directory attribute files).
Split off from the next commit.
2016-06-18 18:25:40 -04:00
Mark Hellegers
56430ad800 cppunit: Enable elf symbol patching for Haiku.
Fixes #12799.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-06-18 18:11:47 -04:00
Mark Hellegers
ac315db012 locale: Fix 24 hour format for DateTimeFormats.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Fixes #12575. I checked with PulkoMandy on IRC before merging this,
and fixed some whitespace violations of the coding style.
2016-06-18 18:09:56 -04:00
Augustin Cavalier
8981510671 Mandelbrot: Work around #12821. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
ee9b10153d Mandelbrot: Implement trivial multithreading.
Does not do "incremental render" (displays progress as it's rendering.)
2016-06-18 17:56:37 -04:00
Augustin Cavalier
b92f800862 Mandelbrot: More coding style fixes. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
5322a6dbc7 Mandelbrot: Add about window. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
e8f108e18d Mandelbrot: Implement mouse wheel zooming. 2016-06-18 17:56:37 -04:00