30817 Commits

Author SHA1 Message Date
Axel Dörfler
d82ea8abda * Only take the popup marker into account if fShowPopUpMarker is true.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32173 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32173
2009-08-07 07:22:56 +00:00
Rene Gollent
01592a4057 Fix small style violation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32172 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32172
2009-08-06 23:44:39 +00:00
Rene Gollent
102a66c3f6 BMenuField's private menu bar did not take into account the width of the popup indicator when computing its minimum size. Fixes ticket #3635.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32171 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32171
2009-08-06 23:24:48 +00:00
Oliver Ruiz Dorantes
22d0f12de3 Netbook!=Handheld
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32169 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32169
2009-08-06 18:28:38 +00:00
Rene Gollent
7e14656cf7 Patch by Blub\0: fix bfs build with DEBUG defined on gcc4.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32168 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32168
2009-08-06 17:56:57 +00:00
Stefano Ceccherini
ceeeb99a7e further cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32167 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32167
2009-08-06 17:05:57 +00:00
Stefano Ceccherini
bdaaeb0c37 Applied the logic in r31871 to jpeg2000 translator too. Fixes bug #4139.
Also cleaned up.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32166 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32166
2009-08-06 17:05:42 +00:00
François Revol
5a9c3ff54c Alpha sort.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32165 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32165
2009-08-06 16:36:32 +00:00
François Revol
68264bed26 Better give the good len.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32164 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32164
2009-08-06 16:04:20 +00:00
Axel Dörfler
fc11b80c6c * Applied patch by sil2100 that basically adds a "Yes to all" button, see
ticket #4059. I fixed a few style violations, though. Thanks!
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32161 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32161
2009-08-06 15:00:52 +00:00
Axel Dörfler
1a60fd72cf * Replaced the Inode::GetTree() method with a simple getter - the tree is
always created for directories since quite some time now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32158 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32158
2009-08-06 11:18:26 +00:00
Axel Dörfler
134e1b04d4 * Somehow I forgot to update the parent directory's time stamps on file
creation, removal, and name changes...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32157 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32157
2009-08-06 11:02:08 +00:00
Axel Dörfler
201c2842bd * The media server now clones each buffer area only once - before, you could
only add a very limited amount of buffers part of the frame buffer, for
  example, as that one is usually a very large area.
* This could prevent all sorts of media buffers to be cloned on certain
  conditions (and could also cause a MediaPlayer fallback to bitmap mode for
  no apparent reason).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32156 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32156
2009-08-06 10:01:20 +00:00
Axel Dörfler
8399a7c04d * When a buffer_info is removed, its area is now actually deleted as well. This
already fixes bug #4189, although there is another bug that could cause a
  similar effect (working on that next).
* Switched from media_server local TMap to HashMap, although this is probably
  equally archaic.
* Also replaced TList with std::set for the team list.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32155 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32155
2009-08-06 09:45:04 +00:00
Axel Dörfler
5174cb1f74 * Added copyless direct value accessors (via Iterator::NextValue(), and
Get()).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32154 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32154
2009-08-06 09:42:34 +00:00
Axel Dörfler
696b8f43fb * Cleanup, BufferManager now aggregates the buffer map as well as its locker
instead of allocating them separately, no functional change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32153 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32153
2009-08-06 08:55:02 +00:00
Axel Dörfler
86766d6aca * handle_driver_events() kept the sDriversListLock locked over the whole
time. But since this is also locked from within the driver/directory watcher
  (with the node monitor lock held), and handle_driver_events() could cause
  node monitoring updates, the locking order could be reverted, causing a
  deadlock (I just ran into).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32152 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32152
2009-08-06 08:24:23 +00:00
Philippe Houdoin
e3ba97b8aa Fixed a crash when resizing GLInfo window (or any non-BDirectWindow with GLView kid(s), for that matter).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32151 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32151
2009-08-06 00:17:30 +00:00
Philippe Houdoin
c4decd80b1 Fixed hardcoded AudioProducer output name.
Stephan, Axel, could one of you report this change in clockwerk/src/shared/AudioProducer.cpp too.
Clockwerk name his audio output "MediaPlayer Sound Output", which is both confusing and, well, 
semantically wrong ;-).

BTW, for MediaPlayer being able to (re)name his output after the filename playing will be great, no?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32150 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32150
2009-08-05 21:55:22 +00:00
Stefano Ceccherini
d0c308a5b6 Accidentally enabled tracing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32148 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32148
2009-08-05 21:31:17 +00:00
Stefano Ceccherini
9a95658ce0 Some cleanups. Shouldn't include any functional changes, except maybe
better cleanup on exiting.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32147 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32147
2009-08-05 21:30:39 +00:00
Stefano Ceccherini
804f3b726b Reverted r21451, otherwise ParticlesII crashes after a while, if the
accelerant doesn't support moving the frame buffer.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32146 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32146
2009-08-05 21:29:22 +00:00
Axel Dörfler
86a1f079e9 * Also fill out monitor_info production date from EDID info.
* Do not set serial_number if there is none.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32145 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32145
2009-08-05 19:10:22 +00:00
Axel Dörfler
1a8af60548 * Now also puts the monitor's serial number and production date into the
tool tip (if available).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32144 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32144
2009-08-05 19:08:36 +00:00
Ingo Weinhold
6905c8a6ee Removed superfluous check.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32143 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32143
2009-08-05 18:41:21 +00:00
François Revol
bd7f3915e6 Move board/ into arch/arm/ since boards likely depend on a cpu anyway. Other archs might want to use the same structure (mipsel ?).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32142 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32142
2009-08-05 17:29:55 +00:00
Axel Dörfler
13247f3a8c * This fixes VGA mode frame buffer use, no idea when this got broken. It might
be broken in the app_server now, but I haven't checked yet.
* Fixed typo in vesa.h.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32141 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32141
2009-08-05 17:24:23 +00:00
Philippe Houdoin
0ac197fcfd Fixed Clockwerk gcc2/gcc4 package filenames.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32140 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32140
2009-08-05 16:54:19 +00:00
Axel Dörfler
a21284874f * Rewrote BBufferGroup header.
* Cleaned up the source file, no functional change (intended).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32139 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32139
2009-08-05 16:08:47 +00:00
François Revol
034ea9408b Placeholder for current GSoC targets (verdex is QEMU, overo is the real one).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32138 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32138
2009-08-05 16:01:17 +00:00
François Revol
b0b9925be1 Introduce a new level of portability: boards.
Since we don't support Flattened Device Trees yet (and they don't solve all the issues), we need a place to hole board-specific config, which are different even though we use U-Boot on ARM. Things like cpu & mmu type...
U-Boot doesn't really help us there anyway, it only passes a few board infos (RAM banks & the bill), and optionally other stuff if we fake a linux kernel or netbsd loader, but still not enough. FDT support isn't available for ARM in U-Boot yet either. So for now, and likely for stuff we can't get from FDT, we'll put board-specific config there.
Unlike desktop machines were we want a single kernel per arch, we'd rather have the kernel built for a single board without having to handle detecting mmu type at boot and switching calls like I did on m68k.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32137 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32137
2009-08-05 16:00:13 +00:00
Axel Dörfler
d4944a7ea2 * Cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32136 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32136
2009-08-05 15:38:44 +00:00
Axel Dörfler
45ed4939f9 * area_for() now also returns the area ID for kernel areas if they are
accessible to the userland - this fixes #2405 (ie. MediaPlayer overlay now
  works).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32135 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32135
2009-08-05 15:04:45 +00:00
Stephan Aßmus
4ef213ddc4 Initialize the default fonts to NULL.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32134 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32134
2009-08-05 14:47:32 +00:00
Ingo Weinhold
102e196b93 Reenabled Firefox gcc 4 package.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32133 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32133
2009-08-05 14:28:58 +00:00
Ingo Weinhold
a826679822 * Only build the gcc 2 compatibility symbols with gcc 2.
* Added gcc 4 _ReservedView11() compatibility symbol.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32132 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32132
2009-08-05 14:26:47 +00:00
Axel Dörfler
b7d46b7558 * Also the indirect array indices can point to a sparse point if they are 0;
this fixes problems with large files with sparse ranges (for example, Haiku
  images).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32131 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32131
2009-08-05 14:23:13 +00:00
Axel Dörfler
cfd22919f2 * FileMap::Translate() did not choke on negative offsets, and _Cache() does not
necessarily return an error in this case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32129 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32129
2009-08-05 13:05:58 +00:00
Axel Dörfler
ccee2a8b35 * "mountvolume" now can also mount by device path.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32128 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32128
2009-08-05 11:09:59 +00:00
Stefano Ceccherini
d6629c3102 fixed copy/paste error which caused bug #4186. Sorry
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32127 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32127
2009-08-05 11:00:35 +00:00
Stephan Aßmus
b9b5bf07db Fixed bugs when freeing the AVCodecEncoder.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32126 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32126
2009-08-05 10:40:06 +00:00
Stephan Aßmus
eb4b63e744 Fixed last minute change that I apparently didn't compile. Sorry.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32125 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32125
2009-08-05 10:22:52 +00:00
Stephan Aßmus
6780c24d36 Encoder:
* Fleshed out the Encoder API to support parameter setters/getters and returning
  a BView for configuration. (Not yet sure if this is a good idea.)

BMediaTrack:
* Implemented all but one of the unimplemented methods in BMediaTrack. It should
  be working as far as that class is concerned, unless I missed some of the
  vision. ReplaceFrames() remains a stub, added a comment on why it probably
  stays that way.
* Release the Encoder reference in the destructor.

FFmpeg plugin:
* Refactoring to delay opening the AVCodec until encoding the first chunk,
  so that we can still adjust parameters.
* Support adjusting parameters via [Set|Get]EncodeParameters(). Currently,
  only quality is supported, added TODOs about supporting the bit_rate setup
  versus the automatically calculated bit_rate.
* Extended EncoderDescription by a bit_rate scale. The Encoder calculates the
  raw bitrate needed by the current media format, and then divides that
  number by the specific codec's bit_rate_scale, while taking into account the
  desired quality. This seems to work very well already (tested with MPEG4),
  although a lot more parameters could be specified for libavcodec, depending
  on the desired quality.
* Enabled the ogg muxer in libavformat, although it is currently still disabled
  in MuxerTable.cpp, because it rejects unknown codecs. Added TODO to this
  effect.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32124 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32124
2009-08-05 10:21:36 +00:00
Stephan Aßmus
048d05a613 Small cleanups.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32123 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32123
2009-08-05 10:11:06 +00:00
Stephan Aßmus
99304ab063 Do not use fWriter functions, when it has not been instantiated properly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32122 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32122
2009-08-05 10:07:43 +00:00
Axel Dörfler
3471097486 * Improved the parsedate() test to produce a reliable test case (with a fixed
"now", and given expected results).
* Now only prints failures, unless you give a command argument (which just
  enables verbose output).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32121 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32121
2009-08-05 09:47:20 +00:00
Stephan Aßmus
e61adaa1d4 Rene missed to remove this part when re-enabling the GCC4 package.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32120 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32120
2009-08-05 08:14:23 +00:00
Ingo Weinhold
af31cb589c Added comment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32119 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32119
2009-08-05 02:31:00 +00:00
Michael Lotz
ee280b59e9 Prevent the user TLB invalidation function from being preempted by turning off
interrupts when invoking it. The user TLB invalidation function essentially only
reads and writes back control register 3 (cr3) which holds the physical address
of the current page directory. Still a preemption between the read and the write
can cause problems when the last thread of a team dies and therefore the team
is deleted. The context switch on preemption would decrement the refcount of the
object that holds the page directory. Then the team address space is deleted
causing the context switch returning to that thread to not re-acquire a
reference to the object. At that point the page directory as set in cr3 is the
one of the previously run thread (which is fine, as all share the kernel space
mappings we need). Now when the preempted thread continues though, it would
overwrite cr3 with the physical page directory address from before the context
switch still stored in eax, therefore setting the page directory to the one of
the dying thread that now doesn't have the corresponding reference. Further
progressing the thread would release the last reference causing the deletion
of the object and freeing of the, now active again, page directory. The memory
getting overwritten (by deadbeef) now completely corrupts the page directory
causing basically any memory access to fault, in the end resulting in a
triplefault. This should fix bug #3399.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32118 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32118
2009-08-04 23:15:05 +00:00
Rene Gollent
c771baca29 Re-enable Vision gcc4 package (update has been posted to haiku-files).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32117 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev32117
2009-08-04 22:54:54 +00:00