From 603eae54ad357c7304acaea71a2e54a123fa7162 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 27 Feb 2004 23:36:43 +0000 Subject: patches from jmmv@menta.net (Julio M. Merino Vidal) Original commit message from CVS: patches from jmmv@menta.net (Julio M. Merino Vidal) * gst/interleave/deinterleave.c: (deinterleave_chain): Fix GST_ELEMENT_ERROR call (bug #135634) * gst/interleave/interleave.c: (interleave_buffered_loop), (interleave_bytestream_loop): Don't use alloca() (bug #135640) * sys/cdrom/gstcdplayer_ioctl_bsd.h: Fix ioctls on NetBSD (bug #135645) * sys/oss/gstosssink.c: (gst_osssink_get_delay), (gst_osssink_chain): Fix ioctls on NetBSD. (bug #135644) * sys/v4l/v4lmjpegsrc_calls.c: (gst_v4lmjpegsrc_sync_next_frame), (gst_v4lmjpegsrc_set_capture), (gst_v4lmjpegsrc_set_capture_m), (gst_v4lmjpegsrc_capture_init), (gst_v4lmjpegsrc_requeue_frame): Fix GST_ELEMENT_ERROR call. * sys/v4l/v4lsrc_calls.c: (gst_v4lsrc_try_palette): Fix GST_ELEMENT_ERROR call. --- sys/cdrom/gstcdplayer_ioctl_bsd.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys/cdrom') diff --git a/sys/cdrom/gstcdplayer_ioctl_bsd.h b/sys/cdrom/gstcdplayer_ioctl_bsd.h index 371c1300..f8a94cd7 100644 --- a/sys/cdrom/gstcdplayer_ioctl_bsd.h +++ b/sys/cdrom/gstcdplayer_ioctl_bsd.h @@ -18,6 +18,9 @@ */ #ifdef HAVE_CDROM_BSD_NETBSD /* net & open */ +#ifndef CDIOREADTOCHDR +#define CDIOREADTOCHDR CDIOREADTOCHEADER +#endif gboolean cd_init(struct cd *cd,const gchar *device) { struct ioc_toc_header toc_header; @@ -318,7 +321,11 @@ gint cd_current_track(struct cd *cd) return -1; } +#ifdef __NetBSD__ + return sub_channel.data->what.track_info.track_number; +#else return sub_channel.data->track_number; +#endif } gboolean cd_close(struct cd *cd) -- cgit v1.2.1