Commit Graph

46816 Commits

Author SHA1 Message Date
Jérôme Duval
f97f2394ca ffmpeg: update build with version 3.0.
* untested.
2016-02-19 21:44:36 +01:00
Jérôme Duval
0d6b5d2667 via.accelerant: fix x86_64 build.
* untested.
2016-02-19 21:44:35 +01:00
Automatic Committer
a93682c096 Update pci.ids from pciids.sourceforge.net 2016-02-18 05:20:27 +01:00
Adrien Destugues
6071ca9209 Allow to build CharacterMap for the test_app_server.
- I needed to test missing glyphs, and none of the available test apps
  allowed to do so.
2016-02-14 21:12:33 +01:00
Adrien Destugues
42d17c1c2f Remove TODO, fixed by the previous commit. 2016-02-14 21:12:33 +01:00
Adrien Destugues
15325401ce app_server: do not return a glyph when nothing is found in the font.
- Fixes BFont::GetHasGlyphs, the "empty square" which was returned led
  it to think the font had glyphs for everything
- This means the "no character" empty square will not be drawn anymore,
  if we want it back, we will need to rework the implementation a bit
  more (either request it explicitly when there is a missing glyph, or
  return it as it was before but including an info that it is the
  "missing glyph")
- Maybe GetHasGlyphs should also bypass the font fallback system, and
  return what's actually in the requested font only.

This also fixes a locking problem in the GlyphLayoutEngine, the code
didn't handle the read/write lock properly and tried to ReadUnlock from
a place where only the write lock was held.
2016-02-14 21:12:33 +01:00
Adrien Destugues
884412df8e Fix test_app_server build, again
- Interface Kit tests use a View class which is not BView, and has no
SetViewUIColor.
- Libexpat is now in a separate package.
- Shouldn't we add this to the buildbots so we can cath the breakage?
2016-02-14 21:12:33 +01:00
Adrien Destugues
975ec13e71 Locale prefs: skip script-specific entries
Avoids showing the same language multiple times in the list, for example
when there are cyrillic and latin variants. It is still possible to pick
one of the variants, as they are also added as country-specific entries.

Fixes #9144.
2016-02-14 16:19:43 +01:00
Stéphane Aulery
006a34e40e CodingStyle checking tool directory:
- Don't crash when a [.svn] cache directory is missing
- Ignores the cache directories of the main VCS : bazaar, git, mercurial, svn

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #11532.
2016-02-14 14:34:38 +01:00
Alexander Sulfrian
632e56d8e5 URL linkification in People
url and email label are now marked as a link and open the address
in the browser/mail-app on click

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #3825

A few extra changes from the original patch:

- Remove "smart" parsing (detection of "ftp", etc) as it could lead to
ftp://ftp://url or other strangeness,
- Add gopher protocol, because mmu_man may have an home page there.
2016-02-14 14:28:38 +01:00
Adrien Destugues
a5a3b2d9a3 Bluetooth: fix thread safety issue.
Fixes #11428.
2016-02-14 14:07:21 +01:00
Avi Brenner
fb94ed118a ShowImage: Adds an option to launch tracker file info for currently viewed file.
Fixes #12241

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2016-02-14 13:49:34 +01:00
Adrien Destugues
da455572ed AVCodecDecoder: fix timing problems
A combination of two problems made things go wrong with the timestamp of
decoded audio.

1) The output buffer size is too small to hold the complete input.
swresample handles this by buffering the input for use the next time it
is called, however repeatedly doing this results in lots of buffering,
and our way to compute the output timestamp from the input does not take
it into account so it does weird things. Moreover, we would need to
empty the buffer by calling swr_convert with NULL input in that case.

Fix: make sure to not feed more data to swr_convert than it can output
in our buffer. This way, no buffering occurs, only the matrixing
conversion.

2) When using planar audio, the "frame size" is a bit different. Instead
of adding sample size * channel count to 1 pointer, we need to add
sample size * 1 to each channel buffer.

Fix: add the "fInputFrameSize" which takes this into account, instead of
misusing fOutputFrameSize for the input.

Fixes #12460.
2016-02-14 11:45:13 +01:00
Dario Casalinuovo
18e199bd7b video_mixer: Better to use array syntax 2016-02-13 16:52:59 +01:00
Dario Casalinuovo
127a93c293 video_mixer: Fix build
* Unfortunately it's crashing the media_addon_server
at startup.
2016-02-13 16:00:14 +01:00
Dario Casalinuovo
44200efd5d media_reader/media_writer: Fix build 2016-02-12 23:00:52 +01:00
Dario Casalinuovo
b1d006d7f8 ToneProducer: Try to don't force a framerate if possible 2016-02-11 19:17:20 +01:00
Dario Casalinuovo
4666afbf41 BMediaEventLooper: Revert recent timeout rework
* While on my system it looked like to run well, it introduced
a regression on some hardware. I'm reverting it as I don't have
a better solution, with the difference that we will do that only
for perfomance time events.
* Fixes #12624.
2016-02-11 19:17:20 +01:00
Automatic Committer
b25d4dd141 Update pci.ids from pciids.sourceforge.net 2016-02-11 05:20:24 +01:00
Axel Dörfler
9cbc5b82c2 E-mail: Stop the mail_daemon if there are no accounts left.
* This fixes part of #12347.
2016-02-10 13:55:57 +01:00
Axel Dörfler
1f105f6750 Mail: Fixed double delete in PersonList.
* This should fix #12615.
2016-02-10 13:55:56 +01:00
Axel Dörfler
f429e4f442 IMAP: Fixed stream vs. parse exception handling.
* Protocol::HandleNextResponse() will now exit when a stream exception
  occurs.
* This should fix bug #12601.
2016-02-10 13:55:56 +01:00
Axel Dörfler
15216b261a IMAP: Retrieve on-disk folder state async.
* Messages that we don't have info for during synchronization are now
  collected, and synchronized once the folder state is available,
  instead of waiting for that particular entry to become available
  (without proper means to wait).
2016-02-10 13:55:55 +01:00
Axel Dörfler
1870a4b1f9 IMAP: Fixed sync command handling.
* The counter did not take continuation commands into account, so that
  it would never reach zero again.
* Optimized IMAPConnectionWorker::_WaitForCommands() such that it will
  always acquire all available "slots".
2016-02-10 13:55:55 +01:00
Axel Dörfler
7d6cefeb50 IMAP: Ignore \Noselect mailboxes.
* They aren't selectable, so we can just hide them from the user.
* This should fix #12369.
2016-02-10 13:55:31 +01:00
Dario Casalinuovo
c1ad6121ca BMediaRecorder: Solve possible problem with node references
* Since the BMediaRecorder have an it's own estabilished policy
relating releasing the producer node we will not interfere with
it except when we are controlled from Cortex.
2016-02-09 20:24:58 +01:00
Dario Casalinuovo
d23913f2d9 BMediaRecorder: Return the actual accepted format
* Allow SoundRecorder to record without the need of a system mixer
in front, for the nodes I can test.
* Solve other format related problems.
2016-02-09 20:15:05 +01:00
Dario Casalinuovo
cc0d365ef7 BMediaRecorder: Fix unneeded argument and error check 2016-02-09 14:11:40 +01:00
Dario Casalinuovo
7b83e044e7 SoundRecorder: Fix connection and disconnection from Cortex
* SoundRecorder can now be connected and disconnected safely,
due to some unknown reason, probably format negotiation problems,
ATM we need a system mixer between.
* The normal behavior is unchanged, when the record button is pressed
it will record from the preferred audio interface and disconnect on
stop. But when the connection is made manually it will stay connected
until the user explictly disconnect it.
* To make it work, instantiate a system mixer, connect the output to
SoundRecorder, instantiate a node like the ToneProducer, and connect
it's output to the mixer input. Press the record button and check
the Mixer has started from the Cortex transport, if not, start it.
2016-02-09 13:33:38 +01:00
Dario Casalinuovo
2a2e352a4a BMediaRecorder: Rework to allow external connections
* This required to review various parts of the code, and
isn't probably still perfect. The main problem was an attributes
hell where redondance created a lot of problems, all this data
is now controlled mostly by the node.
* Header indentation changes needed too.
2016-02-09 13:33:09 +01:00
Dario Casalinuovo
801b3e3bf4 MediaEventLooper: Add more safeness on exit
* The WaitForMessage is moved at the end of the loop, and
the check for quitting the loop is moved as it's condition,
this makes us to be sure that once a Quit() request is performed
we will not handle events anymore.
* Other minor style and initialization fixes.
2016-02-07 23:16:24 +01:00
Dario Casalinuovo
730d0700f5 MultiAudioNode: Remove custom lateness code 2016-02-07 23:16:24 +01:00
Rudolf Cornelissen
2e3e1a5902 VIA gfx driver: fixed overlay on DDR166 and DDR200 memory. v0.19, updated docs. 2016-02-07 22:46:49 +01:00
Dario Casalinuovo
e2cf46ca0c TimedEventQueue: Fix style as suggested by axel 2016-02-03 18:41:50 +01:00
Dario Casalinuovo
138a802617 BMediaEventLooper: Use enqueue_time in a different shape
* This is the only solution that allowed to use the best
of both ways to do this calculus. I've also tested it
with a modified sound player that snoozed every time
the buffer should be handled, and found that neither
of the lateness calculus I tested (including enqueue_time)
really solve all problems. That's why I've tried to find
an average solution. There's still room for improvements
eventually.
2016-02-03 13:25:13 +01:00
Dario Casalinuovo
bb1f15aade BMediaEventLooper: Better solution for negative timestamp
* This problem happens only at the startup, so that it's
preferred that we deal with it in the BMediaEventLooper side.
* This solve some audio stability problems I had with slow systems.
2016-02-03 13:25:13 +01:00
Dario Casalinuovo
ffeb987dc4 BMediaEventLooper: Make lateness calculus in real time
* After having this patch applied locally for some time,
I'm going to be sure that we have to deal only with real_time values.
* Since RealTime() is just a system_time() wrapper, the code
will be slightly improved in performances too.
* Additionally it performs very well when the thread is
externally stopped (such as debugging it), so that the audio
recover almost immediately.
2016-02-03 13:25:13 +01:00
Alexander von Gluck IV
4e7b05cca2 platform/bios_ia32: Fix regression introduced in hrev48326
* Reverts f3e381dd
* Details in #12633
* For some unknown reason, this change breaks an Intel Core 2
  system from booting (Dell Optiplex 960, E8400)
* If anyone has any ideas on why, let me know :-)
2016-02-02 18:48:19 -06:00
Humdinger
104f3b598c Changes some of the extra attributes of the PDF MIME type.
As discussed on the mailing list [1], I changed the name of some of the
more universally useful extra attibutes from "PDF:*" to "META:*", according
to their "Relation to Dublin Code" [2].
There are now:

	"attr:name" = "META:subject",
	"attr:name" = "META:title"		[already in use by Bookmarks],
	"attr:name" = "META:creator",
	"attr:name" = "META:author",
	"attr:name" = "META:keyw"		[already in use by Bookmarks],
	"attr:name" = "META:pages",

[1] http://www.freelists.org/post/haiku-development/Adding-more-METAattributes
[2] http://www.freedesktop.org/wiki/CommonExtendedAttributes/#relationtodublincore
2016-01-31 10:58:03 +01:00
Dario Casalinuovo
f1059fbd7f BSoundPlayer: Release the node instead to delete
* It's a bad idea to delete directly a node. There are some
mechanisms behind that might break if not used correctly.
* May help with #12606.
2016-01-28 23:33:33 +01:00
Axel Dörfler
3d2853b218 app_server: Update overlay hooks after mode change.
* They are supposed to be depending on the current mode.
* This should help with #12613.
2016-01-28 19:51:23 +01:00
Humdinger
82fbf1b3b6 Add the attributes BePDF creates to the PDF MIME type
Providing these attributes by default makes sense. Other applications
are more likely to use those as well instead of creating their own.
2016-01-28 17:13:19 +01:00
Rudolf Cornelissen
d6d5874afe VIA gfx driver: bumped version to 0.18, updated docs. 2016-01-28 11:09:48 +01:00
Rudolf Cornelissen
656b3130c3 VIA gfx driver: K8M800 overlay engine is now up and running OK :-) 2016-01-28 10:34:56 +01:00
Rudolf Cornelissen
193416abaf VIA driver: block overlay hooks if mode not supported! 2016-01-28 10:04:43 +01:00
Automatic Committer
ebec82dfe6 Update pci.ids from pciids.sourceforge.net 2016-01-28 05:20:23 +01:00
Kostadin Damyanov
00bb5b5957 unitests: fix the symlink to the resources directory
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-01-27 19:44:03 -05:00
looncraz
3e08f21606 MenuField Low Color (for frame)
BMenuField's frame is drawn from the LowColor() which is adopted from its
parent.  However, we should be adopting the parent's view color for our low
color, otherwise we sometimes end up with a miscolored border (most often white).

This was not noticed earlier as most views have matching view and low colors.

Fixes ticket #12603

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-01-27 19:43:11 -05:00
looncraz
220f79d835 Deskbar TimeView Text Render Fix
Erroneous use of SetLowUIColor(ViewUIColor()) when the old API was more
appropriate resulted in the tint value being ignored which resulted in some
text rendering issues with certain color combinations and LCD subpixel aliasing.

Fixes ticket# 12596

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-01-27 19:42:13 -05:00
Pete Goodeve
7beac31fbc addattr: Fix some deficiencies.
The addattr didn't quite match its help text, wrt the kinds of values one can
use for type codes. Aside from the list of named types (which isn't actually
quite complete compared to the choices in the source) the help said one can
enter "numeric values", and gives both hex and decimal examples.

However, trying a hex value didn't work -- only decimal numbers were accepted.
This turned out to be because the sscanf format option is "%u" (actually
B_SCNu32) which only handles decimal. It has to be B_SCNi32 (which means it
would be allowed to enter a negative value -- just not very sensible...) The
other example entry given is " 'ABCD' ", which apparently is meant to indicate
that one can enter 'FourCC' direct type-code representations, but of course
that wouldn't work as shown because the shell strips off the quotes. Escaping
the quotes -- \'ABCD\' -- or adding a second layer -- "'ABCD'" -- does work
but is not obvious. (I can't think of any other command line that requires
such a convention.)

I have added another option: "-c ABCD". The current way can
still work, but the new option should be fairly evident to anyone.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Fixes #12562.
2016-01-27 19:38:09 -05:00