summaryrefslogtreecommitdiffstats
path: root/sys/oss/gstosselement.c
Commit message (Collapse)AuthorAgeFilesLines
* sys/oss/gstossmixer.*: Refactored to be more like alsamixer.Andy Wingo2005-08-231-1319/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: 2005-08-23 Andy Wingo <wingo@pobox.com> * sys/oss/gstossmixer.h: * sys/oss/gstossmixer.c: Refactored to be more like alsamixer. * sys/oss/gstossmixertrack.h: * sys/oss/gstossmixertrack.c: Split out from gstossmixer.[ch], like gstalsamixer. * sys/oss/gstosssrc.c: * sys/oss/gstosssink.c: Where before we used a gstosselement object as a helper library, now just call functions from gstosshelper. * sys/oss/gstosshelper.h: * sys/oss/gstosshelper.c: Made a real library. Removed propertyprobe for now, should add it back later. * sys/oss/gstosselement.h: * sys/oss/gstosselement.c: Removed, we don't have a shared base class. * sys/oss/gstosshelper.c (gst_oss_helper_probe_caps): Search higher-to-lower, makes 16 bit appear earlier in the caps, which makes it preferred.
* more macro splitting; fix po problemThomas Vander Stichele2005-07-101-1/+1
| | | | | Original commit message from CVS: more macro splitting; fix po problem
* sys/oss/: Port from THREADED+wim's fixes.Andy Wingo2005-07-081-125/+37
| | | | | | | Original commit message from CVS: 2005-07-08 Andy Wingo <wingo@pobox.com> * sys/oss/: Port from THREADED+wim's fixes.
* updates to make this closer to compileChristian Schaller2005-05-051-1/+1
| | | | | Original commit message from CVS: updates to make this closer to compile
* sys/oss/gstosselement.c: Kick the hell out of gcc for not warning me about a ↵Ronald S. Bultje2005-02-221-4/+4
| | | | | | | | symbol conflict. Original commit message from CVS: * sys/oss/gstosselement.c: (gst_osselement_class_probe_devices): Kick the hell out of gcc for not warning me about a symbol conflict.
* sys/oss/: fixes #159433. Also add missing copyright header to oss_probe.c.Ronald S. Bultje2004-12-161-4/+40
| | | | | | | | | Original commit message from CVS: Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net> * sys/oss/gstosselement.c: (gst_osselement_probe_caps): * sys/oss/oss_probe.c: (main): Check for mono/stereo support (similar to samplerate probing), fixes #159433. Also add missing copyright header to oss_probe.c.
* Fixes a bunch of problems with finalize and dispose functions, either ↵Jan Schmidt2004-11-011-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | assumptions that dispose is only called once, o... Original commit message from CVS: * ext/alsa/gstalsa.c: (gst_alsa_class_init), (gst_alsa_dispose), (gst_alsa_finalize): * ext/cdaudio/gstcdaudio.c: (gst_cdaudio_class_init), (gst_cdaudio_finalize): * ext/cdparanoia/gstcdparanoia.c: (cdparanoia_class_init), (cdparanoia_finalize): * ext/divx/gstdivxdec.c: (gst_divxdec_dispose): * ext/divx/gstdivxenc.c: (gst_divxenc_dispose): * ext/dvdread/dvdreadsrc.c: (dvdreadsrc_class_init), (dvdreadsrc_finalize): * ext/flac/gstflacdec.c: (gst_flacdec_class_init), (gst_flacdec_finalize): * ext/flac/gstflacenc.c: (gst_flacenc_class_init), (gst_flacenc_finalize): * ext/gnomevfs/gstgnomevfssink.c: (gst_gnomevfssink_class_init), (gst_gnomevfssink_finalize): * ext/gnomevfs/gstgnomevfssrc.c: (gst_gnomevfssrc_class_init), (gst_gnomevfssrc_finalize): * ext/libfame/gstlibfame.c: (gst_fameenc_class_init), (gst_fameenc_finalize): * ext/nas/nassink.c: (gst_nassink_class_init), (gst_nassink_finalize): * ext/sdl/sdlvideosink.c: (gst_sdlvideosink_finalize), (gst_sdlvideosink_class_init): * ext/sndfile/gstsf.c: (gst_sf_dispose): * gst-libs/gst/mixer/mixertrack.c: (gst_mixer_track_dispose): * gst-libs/gst/tuner/tunerchannel.c: (gst_tuner_channel_dispose): * gst-libs/gst/tuner/tunernorm.c: (gst_tuner_norm_dispose): * gst-libs/gst/xwindowlistener/xwindowlistener.c: (gst_x_window_listener_dispose): * gst/audioscale/gstaudioscale.c: * gst/playondemand/gstplayondemand.c: (play_on_demand_class_init), (play_on_demand_finalize): * gst/videofilter/gstvideobalance.c: (gst_videobalance_dispose): * gst/videoscale/gstvideoscale.c: (gst_videoscale_chain): * sys/cdrom/gstcdplayer.c: (cdplayer_class_init), (cdplayer_finalize): * sys/glsink/glimagesink.c: (gst_glimagesink_finalize), (gst_glimagesink_class_init): * sys/oss/gstosselement.c: (gst_osselement_class_init), (gst_osselement_finalize): * sys/oss/gstosssink.c: (gst_osssink_dispose): * sys/oss/gstosssrc.c: (gst_osssrc_dispose): * sys/v4l/gstv4lelement.c: (gst_v4lelement_dispose): Fixes a bunch of problems with finalize and dispose functions, either assumptions that dispose is only called once, or not calling the parent class dispose/finalize function
* sys/oss/: Fix offset on osssrc.Wim Taymans2004-07-071-0/+2
| | | | | | | | | Original commit message from CVS: * sys/oss/gstosselement.c: (gst_osselement_reset), (gst_osselement_parse_caps): * sys/oss/gstosselement.h: * sys/oss/gstosssrc.c: (gst_osssrc_get): Fix offset on osssrc.
* gst/wavenc/gstwavenc.c: Switch to GST_WRITE_UINT32_LE macros (bug #144624)David Schleef2004-07-031-1/+9
| | | | | | | | | | Original commit message from CVS: * gst/wavenc/gstwavenc.c: (gst_wavenc_setup), (gst_wavenc_stop_file): Switch to GST_WRITE_UINT32_LE macros (bug #144624) * sys/oss/gstosselement.c: (gst_osselement_probe_caps), (gst_osselement_rate_probe_check): Add another workaround for buggy drivers (bug #145336)
* configure.ac: OSS portabilityStéphane Loeuillet2004-06-071-1/+28
| | | | | | | | | | | | Original commit message from CVS: * configure.ac: OSS portability * ext/arts/gst_arts.c: idem * sys/oss/gstosselement.c: idem * sys/oss/gstossmixer.c: idem * sys/oss/gstosssink.c: idem * sys/oss/gstosssrc.c: idem * sys/oss/oss_probe.c: idem - check for soundcard.h in different places for some BSD
* ext/alsa/: Add enumerations (as GstMixerOptions). Make correct distinction ↵Ronald S. Bultje2004-05-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | between input/output tracks. Add capture/p... Original commit message from CVS: * ext/alsa/Makefile.am: * ext/alsa/gstalsamixer.c: (gst_alsa_mixer_interface_init), (gst_alsa_mixer_build_list), (gst_alsa_mixer_get_volume), (gst_alsa_mixer_set_volume), (gst_alsa_mixer_set_mute), (gst_alsa_mixer_set_record), (gst_alsa_mixer_set_option), (gst_alsa_mixer_get_option): * ext/alsa/gstalsamixer.h: * ext/alsa/gstalsamixeroptions.c: (gst_alsa_mixer_options_get_type), (gst_alsa_mixer_options_class_init), (gst_alsa_mixer_options_init), (gst_alsa_mixer_options_new): * ext/alsa/gstalsamixeroptions.h: * ext/alsa/gstalsamixertrack.c: (gst_alsa_mixer_track_new): * ext/alsa/gstalsamixertrack.h: Add enumerations (as GstMixerOptions). Make correct distinction between input/output tracks. Add capture/playback private flag. Use flag to decide on whether to set capture or playback volumes or switches. Use playback and record switches. * gst-libs/gst/mixer/Makefile.am: * gst-libs/gst/mixer/mixer-marshal.list: * gst-libs/gst/mixer/mixer.c: (gst_mixer_class_init), (gst_mixer_set_option), (gst_mixer_get_option), (gst_mixer_mute_toggled), (gst_mixer_record_toggled), (gst_mixer_volume_changed), (gst_mixer_option_changed): * gst-libs/gst/mixer/mixer.h: * gst-libs/gst/mixer/mixeroptions.c: (gst_mixer_options_get_type), (gst_mixer_options_class_init), (gst_mixer_options_init), (gst_mixer_options_dispose): * gst-libs/gst/mixer/mixeroptions.h: Add GstMixerOptions. * sys/oss/gstosselement.c: (gst_osselement_class_probe_devices): Rename Audio Mixer to OSS Mixer (similar to Alsa Mixer). Fix broken device detection on computers with multiple OSS sound cards.
* fourth batch : remove ',' at end of enums as they could confuse older gcc, ↵Stéphane Loeuillet2004-05-211-1/+1
| | | | | | | | | foreign compilers (forte) and gtk-doc (in ... Original commit message from CVS: fourth batch : remove ',' at end of enums as they could confuse older gcc, foreign compilers (forte) and gtk-doc (in gst-plugins/sys/ this time)
* sys/oss/gstosselement.c: remove leftover debugging g_printBenjamin Otte2004-05-181-3/+0
| | | | | | Original commit message from CVS: * sys/oss/gstosselement.c: (gst_osselement_sync_parms): remove leftover debugging g_print
* ext/shout2/gstshout2.c: Guimond, fixes #142432)Benjamin Otte2004-05-171-5/+17
| | | | | | | | | | Original commit message from CVS: * ext/shout2/gstshout2.c: use application/ogg instead of application/x-ogg (patch by Patrick Guimond, fixes #142432) * sys/oss/gstosselement.c: (gst_osselement_reset), (gst_osselement_sync_parms): don't set fragment size unless specified
* 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)
* 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
* 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-251-1/+338
| | | | | | | | | | | | | | | 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
* don't mix tabs and spacesThomas Vander Stichele2004-03-151-138/+138
| | | | | Original commit message from CVS: don't mix tabs and spaces
* gst-indentThomas Vander Stichele2004-03-141-291/+279
| | | | | 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/gstosselement.*: Reworked enumeration of oss dsps and mixers so that ↵Christophe Fergeau2004-02-291-56/+78
| | | | | | | | | | | | | 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
* assorted debug/warning fixesThomas Vander Stichele2004-02-251-3/+3
| | | | | Original commit message from CVS: assorted debug/warning fixes
* change NULL to (NULL) for GST_ELEMENT_ERRORThomas Vander Stichele2004-02-021-6/+12
| | | | | | Original commit message from CVS: change NULL to (NULL) for GST_ELEMENT_ERROR Make sure errors end with "."
* GST_ELEMENT_ERRORThomas Vander Stichele2004-01-291-6/+6
| | | | | Original commit message from CVS: GST_ELEMENT_ERROR
* 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-191-4/+4
| | | | | 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-181-21/+17
| | | | | Original commit message from CVS: use new error signal and classification
* ext/alsa/gstalsamixer.c: Setting mixer interface type to HARDWARE.Julien Moutte2004-01-151-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* make oss warning more usefulThomas Vander Stichele2004-01-121-1/+6
| | | | | Original commit message from CVS: make oss warning more useful
* Merge CAPS branchDavid Schleef2003-12-221-17/+23
| | | | | Original commit message from CVS: Merge CAPS branch
* configure.ac: Improve mpeg2enc detection. This is for distributions that do ↵Ronald S. Bultje2003-12-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Move over from GstInterface to GstImplementsInterface. Also adds some ↵Ronald S. Bultje2003-12-071-1/+1
| | | | | | | signals to several interfaces Original commit message from CVS: Move over from GstInterface to GstImplementsInterface. Also adds some signals to several interfaces
* Fix device probing from multiple childs. It's done once in the parent class ↵Ronald S. Bultje2003-11-091-6/+7
| | | | | | | only now, but the childs do get the corre... Original commit message from CVS: Fix device probing from multiple childs. It's done once in the parent class only now, but the childs do get the correct values. Also fixes an incorrect succesful state change if we opened a v4l device that doesn't have the capabilities that are needed by the plugin.
* And proper memory cleanup of cached devicesRonald S. Bultje2003-11-061-1/+13
| | | | | Original commit message from CVS: And proper memory cleanup of cached devices
* Add proper switch to needs_probe()Ronald S. Bultje2003-11-061-1/+11
| | | | | Original commit message from CVS: Add proper switch to needs_probe()
* Add device autodetectionRonald S. Bultje2003-11-061-0/+221
| | | | | Original commit message from CVS: Add device autodetection
* Re-add mixer element, gst-mixer doesn't work without itRonald S. Bultje2003-11-051-1/+18
| | | | | Original commit message from CVS: Re-add mixer element, gst-mixer doesn't work without it
* first bunch of conversions to new plugin_init. Includes libs/gst, gst/id3, ↵Benjamin Otte2003-10-311-25/+0
| | | | | | | | | sys/oss, ext/gnomevfs, gst/typefind and ex... Original commit message from CVS: first bunch of conversions to new plugin_init. Includes libs/gst, gst/id3, sys/oss, ext/gnomevfs, gst/typefind and ext/mad. You guessed it, everything Rhythmbox needs ;) fixed BMP typefind and made gnomevfs one plugin instead of two while doing this
* oops... I broke device settings in OSSRonald S. Bultje2003-10-281-2/+2
| | | | | Original commit message from CVS: oops... I broke device settings in OSS
* Rename osselement to ossmixer and only open audio device if we have at least ↵Ronald S. Bultje2003-10-261-2/+6
| | | | | | | one pad. This makes ossmixer *only* open... Original commit message from CVS: Rename osselement to ossmixer and only open audio device if we have at least one pad. This makes ossmixer *only* open the mixer, which means we can open multiple mixer sessions.
* Typo fixRonald S. Bultje2003-10-141-1/+1
| | | | | Original commit message from CVS: Typo fix
* Make GstMixerTrack a GObject. I also want to make it emit several signals, ↵Ronald S. Bultje2003-10-101-3/+11
| | | | | | | starting work is in here but it's not full... Original commit message from CVS: Make GstMixerTrack a GObject. I also want to make it emit several signals, starting work is in here but it's not fully implemented yet. for OSS, this will cause issues, but for ALSA, this is all automated.
* changing 'channel' to 'track' to avoid naming overlapLeif Johnson2003-10-091-1/+1
| | | | | Original commit message from CVS: changing 'channel' to 'track' to avoid naming overlap
* reverting error patch before making a branch.Thomas Vander Stichele2003-09-161-24/+18
| | | | | Original commit message from CVS: reverting error patch before making a branch.
* converted gst_element_error to new format in sys/oss - gettext pendingBenjamin Otte2003-09-151-18/+24
| | | | | Original commit message from CVS: converted gst_element_error to new format in sys/oss - gettext pending
* Interface implementation example: OSS mixer. Also osscommon->osselement so ↵Ronald S. Bultje2003-09-131-0/+681
it can be loaded without being a source/si... Original commit message from CVS: Interface implementation example: OSS mixer. Also osscommon->osselement so it can be loaded without being a source/sink (for a stand-alone mixer)