Ryan Allen(deleted)
|
Re: media-fs devctl()-s: what value to return via dev_info_ptr
|
Ryan Allen(deleted)
05/19/2010 9:37 AM
post55133
|
Re: media-fs devctl()-s: what value to return via dev_info_ptr
On 10-05-19 09:10 AM, Mate Szarvas wrote:
> Do we need to set *dev_info_ptr to a specific value for the metadata events?
You are right that io-media doesn't use this value. I think a good
practice would be to set the value to the length of the string including
the nul-byte. The string should always be nul-terminated in the buffer
you are returning (ie, if your string is longer than can fit in the
buffer, copy it into the buffer and nul-terminate the buffer).
> What value do we need to return for dcmd_media_tracknum?
It should be non-zero. The length of the string (including the
nul-byte) is probably good.
--
Ryan J. Allen
QNX Software Systems
|
|
|
Kevin Mar(deleted)
|
Re: media-fs devctl()-s: what value to return via dev_info_ptr
|
Kevin Mar(deleted)
05/19/2010 9:38 AM
post55134
|
Re: media-fs devctl()-s: what value to return via dev_info_ptr
The following metadata devctls requires the 'ret' value of the devctl to be set.
DCMD_MEDIA_TRACK_NUM
DCMD_MEDIA_RELEASE_DATE
DCMD_MEDIA_ALBART_INFO
As long as the ret value is not 0, io-media will accept the metadata.
|
|
|