Source Activity

Syndicate content
Haiku's main repository
Updated: 31 min 29 sec ago

BMediaRoster: Reintroduce the undertaker class

Tue, 2015-09-01 11:02
* This has been necessary due to the undefined call order of of static objects. Fixes #12315. * The bug has been caused by the linker which free unused resources, making the BMediaRoster to run in a zombie state. In this state anything such as a message could make the looper to crash. * The class is reintroduced with some differences though, we are going to protect it from another thread calling Roster() while the BMediaRoster is quitting and implement BMediaRosterEx::Quit. * Unregister registrar notifications before we quit our thread. Avoid to uninitialize anything from QuitRequested as it may cause problems. * This has been necessary due to the undefined call order of of static objects. Fixes #12315. * The bug has been caused by the linker which free unused resources, making the BMediaRoster to run in a zombie state. In this state anything such as a message could make the looper to crash. * The class is reintroduced with some differences though, we are going to protect it from another thread calling Roster() while the BMediaRoster is quitting and implement BMediaRosterEx::Quit. * Unregister registrar notifications before we quit our thread. Avoid to uninitialize anything from QuitRequested as it may cause problems.
Categories: Development

Mail: temporary workaround for the label placing issue.

Mon, 2015-08-31 17:30
* Does not work for all font sizes. * Does not work for all font sizes.
Categories: Development

Mail: change look of disabled text controls.

Mon, 2015-08-31 17:03
* Added HeaderTextControl that draws the text in black, and uses the panel background without a frame when it's disabled. Only the label is still drawn as disabled. * Changed AddressTextControl to behave in the same way. * The date view is now a HeaderTextControl, too. * Unfortunately, the label is not vertically aligned with the contents. * Added HeaderTextControl that draws the text in black, and uses the panel background without a frame when it's disabled. Only the label is still drawn as disabled. * Changed AddressTextControl to behave in the same way. * The date view is now a HeaderTextControl, too. * Unfortunately, the label is not vertically aligned with the contents.
Categories: Development

BEmailMessage: added missing const, Date() returns time_t.

Mon, 2015-08-31 16:14
* Added missing const to some getter methods. * Date() now tries to parse the date of the mail, and return it as a time_t; you can still retrieve the actual string via HeaderField("Date") if you have to. * Mail now shows the time in the local time zone, and with the current locale. * Added missing const to some getter methods. * Date() now tries to parse the date of the mail, and return it as a time_t; you can still retrieve the actual string via HeaderField("Date") if you have to. * Mail now shows the time in the local time zone, and with the current locale.
Categories: Development

BMailComponent: made a few methods const.

Mon, 2015-08-31 16:04
Categories: Development

BDate: added time_t constructor.

Mon, 2015-08-31 16:01
* This class is pretty much useless as it is. * This class is pretty much useless as it is.
Categories: Development

Mail: properly disable prev/next buttons without Tracker.

Mon, 2015-08-31 06:10
* The prev/next buttons will only work when invoked via an actual mail file from Tracker. * The prev/next buttons will only work when invoked via an actual mail file from Tracker.
Categories: Development

BMenuField: use layout rect for the label.

Sun, 2015-08-30 19:15
* Instead of just laying it out as without the layout API. * Instead of just laying it out as without the layout API.
Categories: Development

ffmpeg: check against correct version constants.

Sun, 2015-08-30 16:00
54.23.x is ffmpeg 0.11, which still has "CodecID" (and x>0). 54.23.x is ffmpeg 0.11, which still has "CodecID" (and x>0).
Categories: Development

ffmpeg: detect the library version the right way.

Sun, 2015-08-30 15:33
* Fixes the build by detecting the library version using the provided constants, instead of guessing from the compiler version. * Fixes the build by detecting the library version using the provided constants, instead of guessing from the compiler version.
Categories: Development

ffmpeg plugin: remove more deprecated functions.

Sun, 2015-08-30 14:20
These were all deprecated between releases 0.6 and 0.10 of ffmpeg, except for one change (renaming of CodecID to AVCodecID) which we can work around with a typedef. The deprecated functions were still available in 0.11, but were removed later on after several years of deprecation. This makes it possible to build our plugin with any ffmpeg version between 0.10 and 2.7, so we can now experiment with updating to 2.7 at least for the gcc4 builds. These were all deprecated between releases 0.6 and 0.10 of ffmpeg, except for one change (renaming of CodecID to AVCodecID) which we can work around with a typedef. The deprecated functions were still available in 0.11, but were removed later on after several years of deprecation. This makes it possible to build our plugin with any ffmpeg version between 0.10 and 2.7, so we can now experiment with updating to 2.7 at least for the gcc4 builds.
Categories: Development

ffmpeg plugin: add support for MOD and other "tracked music"

Sun, 2015-08-30 12:53
* ffmpeg can handle these through ModPlug * By default, ffmpoeg will not try these formats because the way to detect them are a bit unsafe (4 bytes at a particular offset in the file serve as an identifier). So, hint the sniffing by giving it a filename of ".mod" to get modplug to be used. This does not affect sniffing in the regular way for other formats. * Add some common tracked music formats to the muxer table. * Fix some tracing to use current (as of ffmpeg 0.10) function names and because some variables were renamed. * ffmpeg can handle these through ModPlug * By default, ffmpoeg will not try these formats because the way to detect them are a bit unsafe (4 bytes at a particular offset in the file serve as an identifier). So, hint the sniffing by giving it a filename of ".mod" to get modplug to be used. This does not affect sniffing in the regular way for other formats. * Add some common tracked music formats to the muxer table. * Fix some tracing to use current (as of ffmpeg 0.10) function names and because some variables were renamed.
Categories: Development

ahci: Replace use of bit field with shifts and masks.

Sun, 2015-08-30 09:17
It's a 32 bit register which needs properly aligned 32 bit writes. Using a bit field does not guarantee that, so replace it with shifts and masks. Should fix #12338. It's a 32 bit register which needs properly aligned 32 bit writes. Using a bit field does not guarantee that, so replace it with shifts and masks. Should fix #12338.
Categories: Development

Revert "BPrintJob: fixed crash."

Sun, 2015-08-30 02:41
This reverts commit 1805bbf29bceca563985ff377f2b153c46057c2b. This reverts commit 1805bbf29bceca563985ff377f2b153c46057c2b.
Categories: Development

BAlert: make SetShortcut() work again.

Sun, 2015-08-30 02:02
In hrev49481, the call to AddCommonFilter was accidentally removed, preventing SetShortcut() from working. The filter has also been updated to enumerate all buttons, rather than a maximum of the first three. In hrev49481, the call to AddCommonFilter was accidentally removed, preventing SetShortcut() from working. The filter has also been updated to enumerate all buttons, rather than a maximum of the first three.
Categories: Development