rocky
cb9abde2e4
Remove a valgrind-caught memory leak.
2005-06-07 23:41:38 +00:00
rocky
7ba5ba86db
Bug in getting CD-Text make sure TOC is read before trying to get
...
CD-Text info. Problem reported by Christian Moser.
2005-05-16 08:11:31 +00:00
rocky
afa9015c4a
Heiner reports that FreeBSD's passopen() and xptopen() don't allow
...
nonblocking access so O_NONBLOCK might do harm. But it's just a guess
pending what others discover/report.
2005-05-09 23:19:40 +00:00
rocky
adeb8ad487
Add O_NONBLOCK on sms's recommendation
2005-05-09 01:06:39 +00:00
rocky
5fdd22b258
Hopefully a better error message on a transport failed.
2005-05-08 10:10:18 +00:00
rocky
2235d79e7a
cdio_generic_init interface parameter added. Noticed by Heiner.
2005-05-08 09:58:33 +00:00
rocky
bb04344980
Was converting in the wrong direction.
2005-05-07 22:37:15 +00:00
rocky
929770f419
Add routine to report MMC capabilities of a drive. Add that to the
...
cd-drive program.
2005-04-30 09:42:37 +00:00
rocky
adc1418cbd
From Burkhard Plaum:
...
1. Fix a crash, which happened when cdtext_get() was called for an emtp=
y
(i.e. NULL) field.
2. Add another function cdtext_get_const(), which returns a const point=
er
and avoids too much strcpying (apps may want only to TEST if a
field is present or have their own string management routines).
2005-04-25 23:06:21 +00:00
rocky
320c9bd55f
Patch from Burkhard Plaum:
...
1. In the function is_cdrom_linux(...) in the file lib/driver/gnu_linux.c,
the CDROMREADTOCHDR ioctl gets called, which fails when the drive is
empty. The CDROM_GET_CAPABILITY ioctl always succeeds for CDrom drives
and fails for hard disks etc.
2. For some reason, at least my (GNU/Linux 2.6.10) Kernel fails to
open empty drives, when only O_RDONLY is used. Changing the open flag to
O_RDONLY|O_NONBLOCK, the call succeeds also for emtpy drives.
By the way, the cdrom header file in the kernel says explicitely,
that O_RDONLY|O_NONBLOCK should used whenever a cdrom is touched.
rocky: also made a change to eject to continue even if we can't get
the drive status -- which we can't with an empty CD-ROM drive.
2005-04-23 01:16:19 +00:00
rocky
43baf9cbdf
Remove unused variable.
2005-04-14 01:24:32 +00:00
rocky
c0c9b1a22e
gcc 2.95 compatibility - decls before statements.
2005-04-14 01:10:24 +00:00
rocky
ea6f2ba77c
testparanoia.c: free() moved inside library where it belongs.
...
others: trivial changes.
2005-04-11 01:03:46 +00:00
rocky
d07801abd1
trivial format change.
2005-04-11 00:53:56 +00:00
rocky
e29bd8949a
More memory management stuff.
2005-04-11 00:53:09 +00:00
rocky
c89b50e07e
Correct FreeBSD table initialization.
...
Chalk another up for valgrind. Fix memory leak in cdio_free_device_list().
2005-04-10 14:39:19 +00:00
rocky
20b044ca11
Small valgrind-caught memory leak.
2005-04-09 22:56:07 +00:00
rocky
6a8b040a2f
FreeBSD audio control patches from Heiner.
2005-04-05 02:13:58 +00:00
rocky
7f0c18e0ab
freebsd.c: forgot initialization.
...
correct one of the doxygen comments.
2005-03-29 12:00:23 +00:00
rocky
076ec51ef1
Set libraries for revision before release. Interfaces in libcdio and
...
iso9660 have been added so bump, current (and set revision and age 0).
2005-03-29 01:40:19 +00:00
rocky
a18b69a318
Remove internal "close_tray" function as this is external only.
...
Now that close_tray is done right the prototype can be like the others.
2005-03-23 11:26:49 +00:00
rocky
4ef90d57b4
loop over cdtext using length reported back by MMC TOC command.
...
Test sequence number only for valid blocks.
cdtext_private.h: add enumeration to facilitate debugging
cdtext.c: On Windows CD-Text was off by 4. Hack for this.
2005-03-23 11:15:25 +00:00
rocky
7774f8d873
Pass back return code on command.
2005-03-22 09:15:57 +00:00
rocky
36f606f0dc
Fix up BSDI code for closing tray. All the hard work really due to
...
Steve Schultz.
2005-03-22 08:59:54 +00:00
rocky
800eef655f
Not sure why we set the loglevel to debug before a DVD STRUCT PHYSICAL.
...
Remove it.
2005-03-21 08:33:36 +00:00
rocky
647ac913e8
Keep up to date with recent changes in audio subchannel msf.
2005-03-21 07:59:13 +00:00
rocky
80754e4939
Typo in field name. Thanks again to Steve Schultz.
2005-03-21 07:53:22 +00:00
rocky
66e1bdebd6
Revise subchannel so solaris subchannel is libcdio msf.
2005-03-19 18:50:46 +00:00
rocky
d5221e901f
Revise so audio subchannel msf is msf_t (BCD encoded).
2005-03-19 16:17:13 +00:00
rocky
140e8cc8c0
Remove gcc 2.95 warnings on BSDI
2005-03-19 07:28:56 +00:00
rocky
a5161ab684
Revise audio subchannel structure to remove lba uniion since we don't
...
support returning LBA's inside the structure.
include/types.h: use cdio_config.h if none was supplied.
2005-03-19 06:42:22 +00:00
rocky
15ce91070e
audio absolute relative frame on BSDI addressed.
2005-03-18 22:53:48 +00:00
rocky
442f688a45
BSDI eject works, more audio stuff working.
2005-03-18 19:30:31 +00:00
rocky
8ef435a249
src/* gl_default_log_handler defined only once.
...
lib/dirver/*.c: looks to me like a cosmetic change but supposedly it helps
on Fedora Core 4 test1
Bug # 12363:
See: http://savannah.gnu.org/bugs/?func=detailitem&item_id=12363
2005-03-18 12:56:00 +00:00
rocky
9056a8f3e7
Reduce verbosity on disc mode detection
2005-03-17 19:41:16 +00:00
rocky
eb575cf40c
missing declaration
2005-03-17 15:32:27 +00:00
rocky
89a88ff987
remove non-const warning.
2005-03-17 09:01:58 +00:00
rocky
77405839a1
BSDI: add audio controls.
...
cdda-player.c: gcc > 3.0 change.
2005-03-17 08:54:10 +00:00
rocky
af71247d66
Remove duplicate open on CD. Some warnings turned into info
...
messages. Remove unnecessary \n's.
2005-03-15 12:11:53 +00:00
rocky
8aaeb8d71c
read_subchannel sets format MSF. So caller no longer has to.
2005-03-15 04:16:17 +00:00
rocky
30fca87a95
Get read_subchannel working - was thrown off by Microsoft's lousy
...
poor documentation of IOCTL_READ_Q_SUBCHANNEL
2005-03-15 02:04:51 +00:00
rocky
0507f61921
Allow returned parameters to be NULL.
2005-03-14 02:02:49 +00:00
rocky
02ce555171
A hacky OSX close drive routine. It doesn't handle the actual drive
...
paramater because we don't really know how to pass that to druti.
2005-03-13 04:42:38 +00:00
rocky
aa74e98227
Forgot close of file descriptor.
2005-03-11 02:10:11 +00:00
rocky
6cc745b6e0
Possible filling out of FreeBSD audio control routines.
2005-03-11 02:08:05 +00:00
rocky
ff7b7cbfa6
Correct export name.
2005-03-09 11:19:52 +00:00
rocky
daee09ad22
Compilation fix for non MS OS's.
2005-03-09 11:04:34 +00:00
rocky
8e8c54a457
Add MMC START STOP interface.
2005-03-09 10:23:01 +00:00
rocky
86324c60b7
Use mci command for close for now.
2005-03-09 02:36:25 +00:00
rocky
76d8cbe880
win32.c: get eject working.
...
device.c: an additional test for a NULL pointer to be on the safe side.
cdda-player: better handling of eject.
2005-03-09 02:19:54 +00:00