History log of /haiku/src/kits/media/MediaDefs.cpp
Revision Date Author Comments
# 218a8c03 17-May-2019 Augustin Cavalier <waddlesplash@gmail.com>

Revert the Codec Kit.

All of Barrett's individual reverts have been squashed into this
one commit, save a few actual bugfixes.

Change-Id: Ib0a7d0a841d3ac40b1fca7372c58b7f9229bd1f0


# 26c68df8 24-Dec-2018 Murai Takashi <tmurai01@gmail.com>

MediaDefs.cpp: Fix PVS 593

Remove unneed if condition, since 'size_t size' is unsigned.

Change-Id: I283afe6c1c24713b8efa21bd70747293fbc61899
Reviewed-on: https://review.haiku-os.org/796
Reviewed-by: Barrett17 <b.vitruvio@gmail.com>


# 278d03da 27-Nov-2018 Barrett17 <b.vitruvio@gmail.com>

media_kit: Remove most private dependencies from codec_kit

* Move to BCodecKit namespace and make extensive use
of BCodecRoster.
* This is a first step in the right direction of
decreasing private dependencies. Some APIs are being
translated to the CodecKit. I am doing an investigation
on which APIs are really used among apps, so that the new
kit can be more slim and oriented toward easy development
and can be extended in the right direction instead to
continue maintaning unuseful code.
* BMediaFormats needs still a bit of love.
* General improvements in style and code maintainability.


# 50cb5283 23-Oct-2018 Barrett17 <b.vitruvio@gmail.com>

media/codec: Share media_format defs until libmedia2.so


# b84955d4 23-Oct-2018 Barrett17 <b.vitruvio@gmail.com>

media: Remove debug.h, finalize MediaDebug.h

* Funny rust from 0 AD.


# 12ed45b6 18-May-2018 Murai Takashi <tmurai01@gmail.com>

Media kit: Suppress -Werror=class-memaccess

* Add media_format::Clear(), media_format::Unflatten().
* Replace memset() with media_format::Clear()
* Replace memcpy() with media_format::Unflatten()

Fix #14156

Change-Id: I38ebc2de4915b954a15b6f4f6b40d016506910e5


# 6d63bc5e 07-May-2016 Dario Casalinuovo <b.vitruvio@gmail.com>

launch_media_server: Use BLaunchRoster::Start

* Remove SyncToServices and the related code from BMediaRoster.


# 20802959 22-Apr-2016 Dario Casalinuovo <b.vitruvio@gmail.com>

shutdown_media_server: Rely on actual instance

* Makes the shutdown process to rely on the instance that was
running at the time the function is called. While it's unlikely
anyone will see any change from that, this way we will not conflict
in any case with the launch_daemon.
* The reply could have been confused in a remote situation, make
every request to use an it's own object.
* In launch_media_server there was a wrong variable redefinition
too.


# e4704eb6 22-Apr-2016 Dario Casalinuovo <b.vitruvio@gmail.com>

MediaDefs/MediaRoster: Increase code consistency

* Also fix a possible issue with List::Get, the code returned
after a Get() error. While I doubt if this happens the next
items will be still valid, I prefer to continue until we reach
the end of the items, and in case of a SyncToRoster request we will
at least get the list empty. We might have a blocking call
on the other end, so it's our own duty to at least try to avoid
this in any case. As final result at least we will get the list
empty.


# 76889670 21-Apr-2016 Dario Casalinuovo <b.vitruvio@gmail.com>

shutdown_media_server: Finalize rework of synchronization

* When the user isn't requesting a custom notification, it will
be a BMediaRoster job to do it.
* Reintroduce BMediaRoster::SyncToServices, this time based on local
message passing rather than a global semaphore.
* SyncToServices is used in launch_media_server to make the process
more launch_daemon safe and faster in the average case.
* It was an error to add notifications in the media_server.
* Fixes #12717.


# 99741be9 05-Apr-2016 Dario Casalinuovo <b.vitruvio@gmail.com>

shutdown_media_server: Rework shutdown process

* Fixes issues with launch_daemon restart.
* Rely on what the actual response from the server is
instead to naively try to kill it.
* Remove snoozing and make the restart process very fast.
* Any app should rely on notifications anyway.
* Due to some reason a few months ago the media_addon_server
locked up very often making the notification service unreliable,
today this issue looks like solved. This made possible the recent
improvements.


# a0b3904a 03-Apr-2016 Dario Casalinuovo <b.vitruvio@gmail.com>

launch_media_server: Remove notifications handled elsewhere


# ec7d3b40 06-Dec-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

Move old launch_media_server to deprecated file


# 1acc73c4 06-Dec-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

Deprecate media_realtime_init_* functions


# d796a63b 08-Aug-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

MediaKit: Other style fixes

* Thanks to Marcus for reviewing, this is what happen when
you mess out with the TODO list.


# 6ca16f31 08-Aug-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

MediaKit: Style fixes


# 75b9de16 02-Aug-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

MediaDefs: Fix percentage in when notifying the system

* Use TRACE instead of PRINT.


# 8acd164f 29-Jul-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

Add new version of launch_media_server

* Due to the needs to provide a peaceful UX, i moved out the
notifications mechanism from the Media preflet and i have
integrated it with the launch and shutdown functions of MediaDefs.h.
* This implied to introduce a new launch_media_server function
similar to the shutdown_media_server allowing to specify a custom
notification function too.
* Both functions then are reworked to send by default notifications
to the Deskbar, this was needed because in a lot of situations
the mechanism failed without correctly noticing the user.
* The one argument launch_media_server is considered to be deprecated,
the default argument is removed to mantain binary compatibility but
make new apps to automatically use the new one with just the default
arguments. This is needed due to conflicts in overloading.
* Improve notifications by indirectly extending localization
to old BeOS apps.


# 41f5b3fc 28-Mar-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

launch_media_server: correctly handle media services start

* Handle when the media_addon_server is not
running.
* Fix #5621.


# 2feaa37f 02-Apr-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Move media plug-in support to application side.

The media server tried to use node monitoring to dynamically add and
remove plug-ins, but it isn't that useful:
* When a plug-in is added, applications would have to query the media
server to get an up to date list of available formats. For example
MediaConvert populates its format menus on startup.
* When removing a plugin, if an app already had it loaded, there is not
much that can be done to keep it working.
* The list of plugins was not sorted by directories (user vs system
add-ons), so the directories were re-scanned to make sure user add-ons
were returned first, rendering the node monitoring less interesting.

Now, the format handling is done by each application. The node
monitoring is removed, instead the apps will scan the plugin directory
when first using the media kit classes. Restarting the application is
needed to update the media formats list.


# 332cc6bc 30-Nov-2012 Axel Dörfler <axeld@pinc-software.de>

64 bit fixes for libmedia.so, ActivityMonitor, and Sudoku.

* Alex, I feel your pain :-)


# e0818886 22-Aug-2009 Jérôme Duval <korli@users.berlios.de>

when using the = operator with media_format, check the area with B_BAD_VALUE.
Previously metadata weren't copied over the new format.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32596 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 60c85abe 29-Jul-2009 Stephan Aßmus <superstippi@gmx.de>

Resolved TODO, make it clear who maintains the allocation of the
media_file_format array (it remains with the plugin itself, as with
DecoderPlugins).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31955 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7c06546a 29-Jul-2009 Stephan Aßmus <superstippi@gmx.de>

Implement the backend of get_next_file_format(). The AddOnManager maintains
a list for known media_file_formats. The internal IDs map to plugins.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31950 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 891446f5 29-Jul-2009 Stephan Aßmus <superstippi@gmx.de>

More cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31949 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 81b2cc3f 29-Jul-2009 Stephan Aßmus <superstippi@gmx.de>

* Style cleanup, no functional change.
* Added copyrights according to svn log.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31948 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4a46d818 19-Mar-2008 Stephan Aßmus <superstippi@gmx.de>

* Implemented ERROR as fprintf(stderr, ...) with tracing turned off as well.
* Fixed all but one compiler warnings in libmedia.so.
* Truncated lines to 80 char width where I looked at code.
* Turned printf()s into TRACE/ERROR calls in MediaExtractor.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24478 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c332e7f7 20-Sep-2006 Jérôme Duval <korli@users.berlios.de>

fixed build for R5 : now uses inttypes.h because it's present on R5 also
HaikuBuildCompatibily.h exposes INT64_MAX based on limits.h


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18900 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0a00d23f 14-May-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

Reworked media_format meta data handling.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17458 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 23817014 12-Feb-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16372 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3d6c7116 12-Feb-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

added shutdown_media_server and start_media_server into libmedia.so, based on an older implementation from svn history, but modified and bugfixed


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16367 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 98eb4f65 15-Aug-2004 beveloper <beveloper@nowhere.fake>

shutdown and restarting of media_server is handled by libbe.so, not by libmedia.so


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8583 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a861a01e 14-Aug-2004 beveloper <beveloper@nowhere.fake>

switch to Be Inc media server signature, to allow libbe.so sending messages to the server


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8573 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ece05aef 19-May-2004 Jérôme Duval <korli@users.berlios.de>

Implemented launch_media_server and shutdown_media_server. This code is only used when Media is linked first against libmedia.so


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7613 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ffaa0026 08-Feb-2004 beveloper <beveloper@nowhere.fake>

use the correct value (reported by mmu_man)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6537 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a4f26c7d 24-Jan-2004 shatty <shatty@nowhere.fake>

fix SetMetaData to create an area, do not bother with checking the return value from find_thread(NULL)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6259 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b84e6d90 21-Jan-2004 shatty <shatty@nowhere.fake>

instead of checking for invalidity, check for validity for meta_data_area


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6217 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a2d20d9d 21-Jan-2004 shatty <shatty@nowhere.fake>

correct initialization of media_format. (btw I just realized I never need to manually zero a format after construction) perform a complete copy of media_format. do some things related to handling meta_data_areas. still some left to do, so do an UNIMPLEMENTED if we are in that state


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6210 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ceb9cf7a 19-Jan-2004 shatty <shatty@nowhere.fake>

implement SetMetaData, MetaData, MetaDataSize functions on media_format


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6146 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8bd14295 27-Dec-2003 shatty <shatty@nowhere.fake>

the unimplemented printout was driving me crazy, so here they are: media_encode_info and media_decode_info struct initializers


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5784 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5ac4fbd7 19-Jun-2003 beveloper <beveloper@nowhere.fake>

clean up of debugging functions
FATAL is now replaced by ERROR and active at DEBUG=1 or above
TRACE is active at 2 or above
PRINT(level, ...) can be used for DEBUG= level or abode
INFO is removed


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3578 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 89023839 13-Jun-2003 beveloper <beveloper@nowhere.fake>

implemented media_format Matches() and SpecializeTo()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3496 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2de73166 02-Jun-2003 beveloper <beveloper@nowhere.fake>

fixed crash inside string_for_format()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3399 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d9d219a1 29-May-2003 François Revol <revol@free.fr>

forgot some strings in string_for_format()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3388 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9126f16d 29-May-2003 François Revol <revol@free.fr>

string_for_format implemented.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3387 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9bedd42c 29-May-2003 beveloper <beveloper@nowhere.fake>

many fixes to improve timing


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3386 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 83943286 26-May-2003 beveloper <beveloper@nowhere.fake>

lots of boring comparisons


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3341 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 97bd1021 23-May-2003 beveloper <beveloper@nowhere.fake>

removed some of the debug messages


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3299 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 18eed373 23-May-2003 beveloper <beveloper@nowhere.fake>

removed some of the debug messages


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3298 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1ed6c908 06-May-2003 beveloper <beveloper@nowhere.fake>

quick & dirty workaround


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3181 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 60f15390 22-Mar-2003 beveloper <beveloper@nowhere.fake>

a couple of fixes regarding latency calculation


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2996 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 570f7d04 10-Oct-2002 beveloper <beveloper@nowhere.fake>

updated to include the same features/bugs as the screenshot in today's news.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1479 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b6de9d11 12-Jul-2002 beveloper <beveloper@nowhere.fake>

removed compiler warnings


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@138 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 48ff964f 12-Jul-2002 beveloper <beveloper@nowhere.fake>

removed warnigs


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@131 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a38012 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d796a63b4f265d710d2ed1db0f497d8fbdd5bc2e 08-Aug-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

MediaKit: Other style fixes

* Thanks to Marcus for reviewing, this is what happen when
you mess out with the TODO list.


# 6ca16f31cb3977a020516f46726968526c228158 08-Aug-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

MediaKit: Style fixes


# 75b9de169f3cd4aa9a35e12f92f347a534398476 02-Aug-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

MediaDefs: Fix percentage in when notifying the system

* Use TRACE instead of PRINT.


# 8acd164f8c6bd3a4d36e49648b7deb676b18e2e0 29-Jul-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

Add new version of launch_media_server

* Due to the needs to provide a peaceful UX, i moved out the
notifications mechanism from the Media preflet and i have
integrated it with the launch and shutdown functions of MediaDefs.h.
* This implied to introduce a new launch_media_server function
similar to the shutdown_media_server allowing to specify a custom
notification function too.
* Both functions then are reworked to send by default notifications
to the Deskbar, this was needed because in a lot of situations
the mechanism failed without correctly noticing the user.
* The one argument launch_media_server is considered to be deprecated,
the default argument is removed to mantain binary compatibility but
make new apps to automatically use the new one with just the default
arguments. This is needed due to conflicts in overloading.
* Improve notifications by indirectly extending localization
to old BeOS apps.


# 41f5b3fc35319cc8464308914d7ee92f2a6fee5c 28-Mar-2015 Dario Casalinuovo <b.vitruvio@gmail.com>

launch_media_server: correctly handle media services start

* Handle when the media_addon_server is not
running.
* Fix #5621.


# 2feaa37f244d707251f7fe1184ce4f7d30251e2d 02-Apr-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Move media plug-in support to application side.

The media server tried to use node monitoring to dynamically add and
remove plug-ins, but it isn't that useful:
* When a plug-in is added, applications would have to query the media
server to get an up to date list of available formats. For example
MediaConvert populates its format menus on startup.
* When removing a plugin, if an app already had it loaded, there is not
much that can be done to keep it working.
* The list of plugins was not sorted by directories (user vs system
add-ons), so the directories were re-scanned to make sure user add-ons
were returned first, rendering the node monitoring less interesting.

Now, the format handling is done by each application. The node
monitoring is removed, instead the apps will scan the plugin directory
when first using the media kit classes. Restarting the application is
needed to update the media formats list.


# 332cc6bc3b696473169bb9e43340b69a0a3fc4f1 30-Nov-2012 Axel Dörfler <axeld@pinc-software.de>

64 bit fixes for libmedia.so, ActivityMonitor, and Sudoku.

* Alex, I feel your pain :-)


# e0818886cf8ba93c687297c0b03aed9d1e43821a 22-Aug-2009 Jérôme Duval <korli@users.berlios.de>

when using the = operator with media_format, check the area with B_BAD_VALUE.
Previously metadata weren't copied over the new format.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32596 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 60c85abee5dbbab958ad83897dee761ec2cb5330 29-Jul-2009 Stephan Aßmus <superstippi@gmx.de>

Resolved TODO, make it clear who maintains the allocation of the
media_file_format array (it remains with the plugin itself, as with
DecoderPlugins).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31955 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7c06546a8e8df703165baff0156d95f622d00538 29-Jul-2009 Stephan Aßmus <superstippi@gmx.de>

Implement the backend of get_next_file_format(). The AddOnManager maintains
a list for known media_file_formats. The internal IDs map to plugins.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31950 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 891446f596e032ddabd61bb6314bbf4a15a9d460 29-Jul-2009 Stephan Aßmus <superstippi@gmx.de>

More cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31949 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 81b2cc3fadba4cadda5f1fe605bd9c3bc2886959 29-Jul-2009 Stephan Aßmus <superstippi@gmx.de>

* Style cleanup, no functional change.
* Added copyrights according to svn log.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31948 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4a46d818c918c1e320c1593accac547849793222 19-Mar-2008 Stephan Aßmus <superstippi@gmx.de>

* Implemented ERROR as fprintf(stderr, ...) with tracing turned off as well.
* Fixed all but one compiler warnings in libmedia.so.
* Truncated lines to 80 char width where I looked at code.
* Turned printf()s into TRACE/ERROR calls in MediaExtractor.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24478 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c332e7f74ecc754fe77275578f5a3404537e9cb5 20-Sep-2006 Jérôme Duval <korli@users.berlios.de>

fixed build for R5 : now uses inttypes.h because it's present on R5 also
HaikuBuildCompatibily.h exposes INT64_MAX based on limits.h


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18900 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0a00d23f2e1beba1dee0b043ee51d8b24375582e 14-May-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

Reworked media_format meta data handling.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17458 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 23817014934e9c2d2861f30cd9281449f9cd007c 12-Feb-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16372 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3d6c7116048c451f74991e2c81a4f65629b6e424 12-Feb-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

added shutdown_media_server and start_media_server into libmedia.so, based on an older implementation from svn history, but modified and bugfixed


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16367 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 98eb4f65ae96afa11577accd352bd06f59ce9aa2 15-Aug-2004 beveloper <beveloper@nowhere.fake>

shutdown and restarting of media_server is handled by libbe.so, not by libmedia.so


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8583 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a861a01ea438719fe154629b93dde638d869b14b 14-Aug-2004 beveloper <beveloper@nowhere.fake>

switch to Be Inc media server signature, to allow libbe.so sending messages to the server


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8573 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ece05aef60b7b61387009e11e8eb483555e684a6 19-May-2004 Jérôme Duval <korli@users.berlios.de>

Implemented launch_media_server and shutdown_media_server. This code is only used when Media is linked first against libmedia.so


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7613 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ffaa002659190a08c77cde7d90a42a8f514355ef 08-Feb-2004 beveloper <beveloper@nowhere.fake>

use the correct value (reported by mmu_man)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6537 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a4f26c7d660dff50936e5f895dcfb6a417c71e4a 24-Jan-2004 shatty <shatty@nowhere.fake>

fix SetMetaData to create an area, do not bother with checking the return value from find_thread(NULL)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6259 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b84e6d90eb8c7dae34f09f144c86480ee4ce4fa9 21-Jan-2004 shatty <shatty@nowhere.fake>

instead of checking for invalidity, check for validity for meta_data_area


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6217 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a2d20d9daa086da911da64b1a888b29014d9b658 21-Jan-2004 shatty <shatty@nowhere.fake>

correct initialization of media_format. (btw I just realized I never need to manually zero a format after construction) perform a complete copy of media_format. do some things related to handling meta_data_areas. still some left to do, so do an UNIMPLEMENTED if we are in that state


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6210 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ceb9cf7abc577310871c703499804ca63f7fa8ab 19-Jan-2004 shatty <shatty@nowhere.fake>

implement SetMetaData, MetaData, MetaDataSize functions on media_format


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6146 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8bd1429511dee48b503567178e38ebf254c4091a 27-Dec-2003 shatty <shatty@nowhere.fake>

the unimplemented printout was driving me crazy, so here they are: media_encode_info and media_decode_info struct initializers


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5784 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5ac4fbd70dc5b5387cc80965de796deb820d4f05 19-Jun-2003 beveloper <beveloper@nowhere.fake>

clean up of debugging functions
FATAL is now replaced by ERROR and active at DEBUG=1 or above
TRACE is active at 2 or above
PRINT(level, ...) can be used for DEBUG= level or abode
INFO is removed


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3578 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 890238390feea9ebcc3e955d43895f012c6485c3 13-Jun-2003 beveloper <beveloper@nowhere.fake>

implemented media_format Matches() and SpecializeTo()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3496 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2de73166b50006f460b32d02e5e8680d720ec932 02-Jun-2003 beveloper <beveloper@nowhere.fake>

fixed crash inside string_for_format()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3399 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d9d219a135cc2e6dce5b758aedc1590315d1b460 29-May-2003 François Revol <revol@free.fr>

forgot some strings in string_for_format()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3388 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9126f16df49d9b90db308afe810cd9c09998bb73 29-May-2003 François Revol <revol@free.fr>

string_for_format implemented.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3387 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9bedd42cd1e0fdb44e39be7ef4f3c76786d59b50 29-May-2003 beveloper <beveloper@nowhere.fake>

many fixes to improve timing


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3386 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 839432862588a903be93091639ead9577ded27a8 26-May-2003 beveloper <beveloper@nowhere.fake>

lots of boring comparisons


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3341 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 97bd1021670b887592c5d3938ba86f1eee1b3886 23-May-2003 beveloper <beveloper@nowhere.fake>

removed some of the debug messages


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3299 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 18eed37337ec25421c5056666a254215649cda20 23-May-2003 beveloper <beveloper@nowhere.fake>

removed some of the debug messages


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3298 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1ed6c90897793035b8fa9ec8bcf8b997c6e95016 06-May-2003 beveloper <beveloper@nowhere.fake>

quick & dirty workaround


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3181 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 60f15390cd7b83f1a8083d8530d7256aa1ea71e3 22-Mar-2003 beveloper <beveloper@nowhere.fake>

a couple of fixes regarding latency calculation


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2996 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 570f7d0456164c9d2f22525c7eca167021e93770 10-Oct-2002 beveloper <beveloper@nowhere.fake>

updated to include the same features/bugs as the screenshot in today's news.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1479 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b6de9d11ff1c98de319f0c4f93ae3ceb9a33556f 12-Jul-2002 beveloper <beveloper@nowhere.fake>

removed compiler warnings


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@138 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 48ff964fe775ad879dbb4ae16b0f2566bcacebe4 12-Jul-2002 beveloper <beveloper@nowhere.fake>

removed warnigs


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@131 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a380120846174213ccce9c4aab0dda17c72083 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96