summaryrefslogtreecommitdiffstats
path: root/sys/oss
Commit message (Collapse)AuthorAgeFilesLines
* sys/oss/gstosselement.c: Add a check for a driver bug on FreeBSD. (bug #140565)David Schleef2004-04-291-0/+11
| | | | | | Original commit message from CVS: * sys/oss/gstosselement.c: (gst_osselement_rate_probe_check): Add a check for a driver bug on FreeBSD. (bug #140565)
* ext/mad/gstid3tag.c: Add stdlib.hDavid Schleef2004-04-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: reviewed by David Schleef * ext/mad/gstid3tag.c: Add stdlib.h * gst/rtp/gstrtpgsmenc.c: same * gst/tags/gstid3tag.c: same * gst/udp/gstudpsrc.c: (gst_udpsrc_get): Fix GST_DISABLE_LOADSAVE * gst/tcp/gsttcpsink.c: (gst_tcpsink_sink_link): Adjust GST_DISABLE_LOADSAVE use. * gst/udp/gstudpsink.c: (gst_udpsink_sink_link): Likewise. * gst/tcp/gsttcpsrc.c: (gst_tcpsrc_get): Likewise. * ext/gnomevfs/gstgnomevfssrc.c: Include <stdlib.h> (needed by atol(3)). * sys/oss/gstosselement.h: Include <sys/types.h> (needed for dev_t). * gst/tags/gstvorbistag.c: Include <stdlib.h> (needed by strtoul(3)). * gst/rtp/gstrtpL16enc.c: Include <stdlib.h> (needed by random(3)). * ext/mad/Makefile.am: (libgstmad_la_CFLAGS): Add $(MAD_CFLAGS) $(ID3_CFLAGS). * ext/libfame/Makefile.am: (libgstlibfame_la_CFLAGS): Add $(LIBFAME_CFLAGS).
* sys/oss/gstosselement.c: get rid of \n in debug outputBenjamin Otte2004-04-181-5/+5
| | | | | | | | Original commit message from CVS: * sys/oss/gstosselement.c: (gst_osselement_sync_parms), (gst_osselement_rate_probe_check), (gst_osselement_rate_check_rate), (gst_osselement_rate_add_rate): get rid of \n in debug output
* s/lstat/stat/ since it can be a symlink, ask decadix on IRC if you have ↵Christian Schaller2004-04-121-1/+1
| | | | | | | questiosn Original commit message from CVS: s/lstat/stat/ since it can be a symlink, ask decadix on IRC if you have questiosn
* sys/oss/.cvsignore: add for oss_probeBenjamin Otte2004-04-041-0/+1
| | | | | | Original commit message from CVS: * sys/oss/.cvsignore: add for oss_probe
* throw an error if we couldn't probe capsThomas Vander Stichele2004-04-011-0/+5
| | | | | Original commit message from CVS: throw an error if we couldn't probe caps
* sys/oss/gstosselement.c: probe caps correctly for sound cards that only ↵Benjamin Otte2004-03-301-1/+3
| | | | | | | | | support one format Original commit message from CVS: * sys/oss/gstosselement.c: (gst_osselement_probe_caps), (gst_osselement_rate_check_rate): probe caps correctly for sound cards that only support one format
* sys/oss/gstosselement.c: Add code to handle rate probing (bug #120883)David Schleef2004-03-254-4/+382
| | | | | | | | | | | | | | | Original commit message from CVS: * sys/oss/gstosselement.c: (gst_osselement_sync_parms), (gst_osselement_close_audio), (gst_osselement_probe_caps), (gst_osselement_get_format_structure), (gst_osselement_rate_probe_check), (gst_osselement_rate_add_range), (gst_osselement_rate_check_rate), (gst_osselement_rate_add_rate), (gst_osselement_rate_int_compare): Add code to handle rate probing (bug #120883) * sys/oss/gstosselement.h: same * sys/oss/gstosssink.c: (gst_osssink_init), (gst_osssink_getcaps): Use rate probing provided by osselement. * sys/oss/gstosssrc.c: (gst_osssrc_init), (gst_osssrc_getcaps): same
* minor updates to last checkinDavid Schleef2004-03-232-77/+81
| | | | | Original commit message from CVS: minor updates to last checkin
* sys/oss/: Rate probing test app.David Schleef2004-03-232-0/+241
| | | | | | | Original commit message from CVS: * sys/oss/Makefile.am: * sys/oss/oss_probe.c: (main), (probe_check), (add_range), (check_rate), (add_rate): Rate probing test app.
* don't mix tabs and spacesThomas Vander Stichele2004-03-155-292/+326
| | | | | Original commit message from CVS: don't mix tabs and spaces
* *.h: Revert indentingJohan Dahlin2004-03-154-83/+92
| | | | | Original commit message from CVS: * *.h: Revert indenting
* gst-indentThomas Vander Stichele2004-03-149-852/+853
| | | | | Original commit message from CVS: gst-indent
* Don't block during probing...Ronald S. Bultje2004-03-131-1/+1
| | | | | | | Original commit message from CVS: * ext/alsa/gstalsa.c: (gst_alsa_class_probe_devices): * sys/oss/gstosselement.c: (gst_osselement_class_probe_devices): Don't block during probing...
* sys/oss/gstosssink.c: Latest fixes for A/V sync, audio playback and such. ↵Ronald S. Bultje2004-03-111-51/+47
| | | | | | | | | | | This is about all... MPEG playback issues a... Original commit message from CVS: * sys/oss/gstosssink.c: (gst_osssink_init), (gst_osssink_get_time), (gst_osssink_chain), (gst_osssink_change_state): Latest fixes for A/V sync, audio playback and such. This is about all... MPEG playback issues are mostly related to the async build- up of MPEG files, I cannot fix that. Use basicgthread to solve it.
* ext/divx/gstdivxdec.c: Downgrade priority. We prefer ffdec_mpeg4.Ronald S. Bultje2004-03-101-15/+34
| | | | | | | | | | | | | | | Original commit message from CVS: * ext/divx/gstdivxdec.c: Downgrade priority. We prefer ffdec_mpeg4. * ext/faad/gstfaad.c: (gst_faad_srcgetcaps), (gst_faad_srcconnect), (gst_faad_chain), (gst_faad_change_state): Fix capsnego. Doesn't work for some sounds because we don't have a 5:1 to stereo element. * ext/xvid/gstxvid.c: (plugin_init): Add priority. * sys/oss/gstosssink.c: (gst_osssink_init), (gst_osssink_chain), (gst_osssink_change_state): Add discont handling.
* add a warningThomas Vander Stichele2004-03-081-4/+9
| | | | | Original commit message from CVS: add a warning
* sys/oss/gstosssink.c: And another caller that couldn't handle delay < 0 ↵Ronald S. Bultje2004-03-071-4/+8
| | | | | | | | | | | (unsigned integer overflow). Video now contin... Original commit message from CVS: * sys/oss/gstosssink.c: (gst_osssink_chain): And another caller that couldn't handle delay < 0 (unsigned integer overflow). Video now continues playing on an audio buffer underrun, and the clock continues working. Audio still stalls.
* sys/oss/gstosssink.c: get_delay() may return values lower than 0. In those ↵Ronald S. Bultje2004-03-071-2/+5
| | | | | | | | | | | | cases, we should not actually cast to *uns... Original commit message from CVS: * sys/oss/gstosssink.c: (gst_osssink_get_delay), (gst_osssink_get_time): get_delay() may return values lower than 0. In those cases, we should not actually cast to *unsigned* int64, that will break stuff horribly. In my case, it screwed up A/V sync in movies in totem rather badly.
* sys/oss/gstosselement.*: Reworked enumeration of oss dsps and mixers so that ↵Christophe Fergeau2004-02-292-56/+79
| | | | | | | | | | | | | gst-mixer works on my system using alsa ... Original commit message from CVS: 2004-02-29 Christophe Fergeau <teuf@gnome.org> * sys/oss/gstosselement.c: (gst_osselement_probe), (device_combination_append), (gst_osselement_class_probe_devices): * sys/oss/gstosselement.h: Reworked enumeration of oss dsps and mixers so that gst-mixer works on my system using alsa oss emulation, fixes bug #135597
* patches from jmmv@menta.net (Julio M. Merino Vidal)David Schleef2004-02-271-2/+8
| | | | | | | | | | | | | | | | | | 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.
* assorted debug/warning fixesThomas Vander Stichele2004-02-251-3/+3
| | | | | Original commit message from CVS: assorted debug/warning fixes
* clean up debuggingThomas Vander Stichele2004-02-251-5/+1
| | | | | Original commit message from CVS: clean up debugging
* ext/alsa/gstalsa.c: be sure to stop the clock when going to pausedBenjamin Otte2004-02-051-0/+1
| | | | | | | | | | | | | | | | | | Original commit message from CVS: 2004-02-05 Benjamin Otte <in7y118@public.uni-hamburg.de> * ext/alsa/gstalsa.c: (gst_alsa_change_state): be sure to stop the clock when going to paused * sys/oss/gstosssink.c: (gst_osssink_change_state): reset number of transmitted when going to ready. fixes #132935 2004-02-05 Charles Schmidt <cschmidt2@emich.edu> reviewed by Benjamin Otte * ext/mad/gstid3tag.c: (gst_mad_id3_to_tag_list): extract track count (fixes #133410)
* remove textdomain callsThomas Vander Stichele2004-02-021-1/+0
| | | | | Original commit message from CVS: remove textdomain calls
* change NULL to (NULL) for GST_ELEMENT_ERRORThomas Vander Stichele2004-02-023-10/+16
| | | | | | Original commit message from CVS: change NULL to (NULL) for GST_ELEMENT_ERROR Make sure errors end with "."
* GST_ELEMENT_ERRORThomas Vander Stichele2004-01-293-10/+10
| | | | | Original commit message from CVS: GST_ELEMENT_ERROR
* sys/oss/gstosssink.c: use gst_element_get_time to get correct timeBenjamin Otte2004-01-271-1/+1
| | | | | | | | Original commit message from CVS: 2004-01-27 Benjamin Otte <in7y118@public.uni-hamburg.de> * sys/oss/gstosssink.c: (gst_osssink_sink_query): use gst_element_get_time to get correct time
* remove commentThomas Vander Stichele2004-01-231-1/+0
| | | | | Original commit message from CVS: remove comment
* sys/oss/gstosselement.c: Fix the ossmixer case where we shouldn't open ↵Ronald S. Bultje2004-01-221-2/+20
| | | | | | | | | | | /dev/dsp* because it might block operations (w... Original commit message from CVS: 2004-01-22 Ronald Bultje <rbultje@ronald.bitfreak.net> * sys/oss/gstosselement.c: (gst_osselement_class_probe_devices): Fix the ossmixer case where we shouldn't open /dev/dsp* because it might block operations (which is bad for a mixer).
* putting i18n in place for pluginsThomas Vander Stichele2004-01-192-4/+13
| | | | | Original commit message from CVS: putting i18n in place for plugins
* fix i18n includeThomas Vander Stichele2004-01-191-1/+1
| | | | | Original commit message from CVS: fix i18n include
* use new error signal and classificationThomas Vander Stichele2004-01-184-27/+30
| | | | | Original commit message from CVS: use new error signal and classification
* ext/alsa/gstalsamixer.c: Setting mixer interface type to HARDWARE.Julien Moutte2004-01-152-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: 2004-01-15 Julien MOUTTE <julien@moutte.net> * ext/alsa/gstalsamixer.c: (gst_alsa_mixer_interface_init): Setting mixer interface type to HARDWARE. * gst-libs/gst/mixer/mixer.c: (gst_mixer_class_init): Adding a default type to SOFTWARE. * gst-libs/gst/mixer/mixer.h: Adding mixer interface type and macro. * gst-libs/gst/mixer/mixertrack.h: Adding mixertrack flag SOFTWARE. * gst/volume/gstvolume.c: (gst_volume_interface_supported), (gst_volume_interface_init), (gst_volume_list_tracks), (gst_volume_set_volume), (gst_volume_get_volume), (gst_volume_set_mute), (gst_volume_mixer_init), (gst_volume_dispose), (gst_volume_get_type), (volume_class_init), (volume_init): Implementing mixer interface. * gst/volume/gstvolume.h: Adding tracklist for mixer interface. * sys/oss/gstosselement.c: (gst_osselement_get_type), (gst_osselement_change_state): Removing some trailing commas in structures. * sys/oss/gstossmixer.c: (gst_ossmixer_interface_init): Setting mixer interface type to HARDWARE. * sys/v4l/gstv4lcolorbalance.c: (gst_v4l_color_balance_interface_init): Setting colorbalance interface type to HARDWARE. * sys/v4l2/gstv4l2colorbalance.c: (gst_v4l2_color_balance_interface_init): Setting colorbalance interface type to HARDWARE. * sys/xvimage/xvimagesink.c: (gst_xvimagesink_chain): use exactly the same code than ximagesink for event handling.
* ext/alsa/gstalsasink.c: Don't update the time of the clock sync to the clock ↵Benjamin Otte2004-01-151-7/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | given to alsasink, not the own clock Original commit message from CVS: 2004-01-15 Benjamin Otte <in7y118@public.uni-hamburg.de> * ext/alsa/gstalsasink.c: (gst_alsa_sink_check_event): Don't update the time of the clock (gst_alsa_sink_loop): sync to the clock given to alsasink, not the own clock * sys/oss/gstosssink.c: (gst_osssink_chain): sync to the clock (gst_osssink_change_state): activate the clock * sys/ximage/ximagesink.c: (gst_ximagesink_chain): * sys/xvimage/xvimagesink.c: (gst_xvimagesink_chain): remove bogus code that made DISCONT events unhandled * gst/asfdemux/gstasfdemux.c: (gst_asf_demux_video_caps): explicitly case to double in _set_simple. (fixes 2nd warning in bug #131502) * gst/asfdemux/gstasfdemux.c: (gst_asf_demux_read_object_header), (gst_asf_demux_handle_sink_event), (gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream), (gst_asf_demux_video_caps): convert g_warning because of wrong asf data to GST_WARNINGs (fixes 2nd warning in bug #131502)
* use element time.Benjamin Otte2004-01-141-55/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: 2004-01-14 Benjamin Otte <in7y118@public.uni-hamburg.de> * ext/aalib/gstaasink.c: (gst_aasink_chain): * ext/alsa/gstalsasink.c: (gst_alsa_sink_check_event): * ext/esd/esdsink.c: (gst_esdsink_chain): * ext/libcaca/gstcacasink.c: (gst_cacasink_chain): * ext/mas/massink.c: (gst_massink_chain): * ext/sdl/sdlvideosink.c: (gst_sdlvideosink_chain): * gst/matroska/matroska-demux.c: (gst_matroska_demux_parse_index), (gst_matroska_demux_parse_metadata): * gst/mpegstream/gstmpegparse.c: (gst_mpeg_parse_loop), (gst_mpeg_parse_release_locks): * gst/tcp/gsttcpsink.c: (gst_tcpsink_chain): * gst/udp/gstudpsink.c: (gst_udpsink_chain): * gst/videotestsrc/gstvideotestsrc.c: (gst_videotestsrc_get): * sys/oss/gstosssink.c: (gst_osssink_init), (gst_osssink_chain), (gst_osssink_change_state): * sys/v4l/gstv4lmjpegsink.c: (gst_v4lmjpegsink_chain): * sys/ximage/ximagesink.c: (gst_ximagesink_chain): * sys/xvideo/xvideosink.c: (gst_xvideosink_chain), (gst_xvideosink_release_locks): * sys/xvimage/xvimagesink.c: (gst_xvimagesink_chain): use element time. * ext/alsa/gstalsaclock.c: (gst_alsa_clock_start), (gst_alsa_clock_stop): * gst-libs/gst/audio/audioclock.c: (gst_audio_clock_set_active), (gst_audio_clock_get_internal_time): simplify for use with new clocking code. * testsuite/alsa/Makefile.am: * testsuite/alsa/sinesrc.c: (sinesrc_init), (sinesrc_force_caps): fix testsuite for new caps system
* make oss warning more usefulThomas Vander Stichele2004-01-121-1/+6
| | | | | Original commit message from CVS: make oss warning more useful
* add oss debugging categoryThomas Vander Stichele2004-01-122-0/+6
| | | | | Original commit message from CVS: add oss debugging category
* sys/oss/gstosssink.c: Fix for bug shown by poisoningBenjamin Otte2004-01-061-2/+2
| | | | | | | | Original commit message from CVS: 2004-01-07 Benjamin Otte <in7y118@public.uni-hamburg.de> * sys/oss/gstosssink.c: (gst_osssink_sink_fixate): Fix for bug shown by poisoning
* ext/shout/gstshout.c: fix for new caps system.Ronald S. Bultje2004-01-061-2/+13
| | | | | | | | | | | | | Original commit message from CVS: 2004-01-06 Ronald Bultje <rbultje@ronald.bitfreak.net> * ext/shout/gstshout.c: (gst_icecastsend_base_init), (gst_icecastsend_init): fix for new caps system. * gst-libs/gst/mixer/mixertrack.h: * sys/oss/gstossmixer.c: (gst_ossmixer_build_list): Add 'master track' flag (for tools like ACME that only want to change the main volume).
* Fix the fixate functions to handle new prototype:David Schleef2004-01-041-2/+2
| | | | | | | | | | | Original commit message from CVS: Fix the fixate functions to handle new prototype: * gst/sine/gstsinesrc.c: (gst_sinesrc_src_fixate): * gst/videotestsrc/gstvideotestsrc.c: (gst_videotestsrc_src_fixate): * sys/oss/gstosssink.c: (gst_osssink_sink_fixate): * sys/ximage/ximagesink.c: (gst_ximagesink_fixate): * sys/xvimage/xvimagesink.c: (gst_xvimagesink_fixate):
* Return NULL if we can't fixate the caps anymore.Colin Walters2003-12-241-1/+3
| | | | | Original commit message from CVS: Return NULL if we can't fixate the caps anymore.
* gst/volume/gstvolume.c: Proxy getcaps.David Schleef2003-12-241-0/+26
| | | | | | | Original commit message from CVS: * gst/volume/gstvolume.c: (volume_init): Proxy getcaps. * sys/oss/gstosssink.c: (gst_osssink_init), (gst_osssink_sink_fixate): Add fixate function.
* Merge CAPS branchDavid Schleef2003-12-225-101/+60
| | | | | Original commit message from CVS: Merge CAPS branch
* configure.ac: Improve mpeg2enc detection. This is for distributions that do ↵Ronald S. Bultje2003-12-212-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ship mjpegtools, but without mpeg2enc. Al... Original commit message from CVS: 2003-12-21 Ronald Bultje <rbultje@ronald.bitfreak.net> * configure.ac: Improve mpeg2enc detection. This is for distributions that do ship mjpegtools, but without mpeg2enc. Also does object check for might there ever be ABI incompatibility. * ext/mpeg2enc/gstmpeg2enc.cc: Add Andrew as second maintainer (he's helping me), and also add an error if no caps was set. This happens if I pull before capsnego and that's something I should solve sometime else. * gst/matroska/matroska-demux.c: (gst_matroska_demux_parse_blockgroup): Fix time parsing. * gst/matroska/matroska-mux.c: (gst_matroska_mux_audio_pad_link), (gst_matroska_mux_track_header): Add caps to templates. * gst/mpegaudioparse/gstmpegaudioparse.c: (mp3_sink_factory): Add mpegversion=1 to prevent confusion with MPEG/AAC. * gst/mpegstream/gstmpegdemux.c: Remove layer since it causes warnings about unfixed caps. * gst/videotestsrc/gstvideotestsrc.c: (gst_videotestsrc_get): Fix obvious typo (we error out if caps were set, we should of course error out if *no* caps were set). * sys/oss/gstosselement.c: (gst_osselement_convert): Fix format conversion, we confused bits/bytes. * sys/oss/gstosselement.h: Improve documentation for 'bps'. * sys/v4l/TODO: Remove stuff about plugins that need removing - this was done ages ago. * sys/v4l/gstv4lmjpegsrc.c: (gst_v4lmjpegsrc_init), (gst_v4lmjpegsrc_src_convert), (gst_v4lmjpegsrc_src_query): * sys/v4l/gstv4lsrc.c: (gst_v4lsrc_init), (gst_v4lsrc_src_convert), (gst_v4lsrc_src_query): * sys/v4l2/gstv4l2src.c: (gst_v4l2src_init), (gst_v4l2src_src_convert), (gst_v4l2src_src_query): Add get_query_types(), get_formats() and query() functions.
* Go back to old code, it works good enough...Ronald S. Bultje2003-12-171-6/+14
| | | | | Original commit message from CVS: Go back to old code, it works good enough...
* Remove debugging statementsRonald S. Bultje2003-12-161-4/+4
| | | | | Original commit message from CVS: Remove debugging statements
* Fix some clocking issue in OSS. The issue is that if we seek forward (note: ↵Ronald S. Bultje2003-12-161-15/+8
| | | | | | | specifically forward-only), then we call ... Original commit message from CVS: Fix some clocking issue in OSS. The issue is that if we seek forward (note: specifically forward-only), then we call handle_discont() before re-setting the clock to active. However, gstclock.c tells us that handle_discont only succeeds if allow_discont=TRUE, which is set in... set_active(TRUE). So, we first need to re-activate the clock and *then* call handle_discont(). More importantly, though, we should **NEVER EVER EVER EVER EVER** **NEVER EVER EVER EVER EVER** call clock_wait() after a forward discont without first having called handle_discont(). I don't know who added that code, but it's beyond fundamentally broken. clock_wait() **WAITS** until we're at the new given buftime, so if we do that on a forward-seek buffer, we... yes! we wait the amount of time that we seeked forward. Anyway, Apparently this code has been in here for quite a long time so I don't get how this can ever have worked...
* Er, right, this is a typoRonald S. Bultje2003-12-161-1/+1
| | | | | Original commit message from CVS: Er, right, this is a typo
* it's broken and it failed to load during the last few months. If anyone ↵Ronald S. Bultje2003-12-146-1018/+2
| | | | | | | wants to revive it, have fun finding it back ... Original commit message from CVS: Remove ossgst... It's a crude hack (beyond ugly), it's broken and it failed to load during the last few months. If anyone wants to revive it, have fun finding it back in the CVS history