1. 11 May, 2010 40 commits
    • Tim-Philipp Müller's avatar
      Move oss4 plugin from -bad to -good · 1732ce03
      Tim-Philipp Müller authored
      Hook up build infrastructure, docs and tests.
      
      Fixes #614305.
      1732ce03
    • Brian Cameron's avatar
      oss4sink: implement GstStreamVolume interface and add mute and volume properties · 02a226f7
      Brian Cameron authored
      OSS4 supports per-stream volume control, so expose this using the right
      API, so that playbin2 and applications like totem can make use of it
      (instead of using a volume element for volume control).
      
      Fixes #614305.
      02a226f7
    • Tim-Philipp Müller's avatar
    • Tim-Philipp Müller's avatar
      oss4: don't iterate the formats table twice for each entry · 4d658c18
      Tim-Philipp Müller authored
      When iterating the formats table, we can just pass the whole
      entry to our helper function, which avoids iterating the table
      again to find the entry structure from the passed format id.
      4d658c18
    • Tim-Philipp Müller's avatar
      oss4: also accept formats not natively supported · 59120a02
      Tim-Philipp Müller authored
      Also accept formats that are not natively supported by the
      hardware, OSS4 can convert them internally. List the native
      formats first in the caps though, to express our preference
      for the native formats. We need this in order to support the
      case properly where the audio hardware supports only e.g.
      little endian PCM, but the host is big endian, since many
      audio elements only support native endianness and make the
      reasonable assumption that any audiosink will be able to
      handle audio in native endianness.
      
      Based on patch by Jerry Tan <jerry.tan@sun.com>
      
      Fixes #614317.
      59120a02
    • Tim-Philipp Müller's avatar
      oss4: add comment for translators · 3b134726
      Tim-Philipp Müller authored
      Not that that will make these strings much better. Also remove i18n
      marker where it doesn't make sense.
      3b134726
    • Benjamin Otte's avatar
      oss4: Refactor code to make it look more modern · ab5f5461
      Benjamin Otte authored
      A side effect is that it passes -Wformat-nonliteral and doesn't read
      invalid memory in some cases, like when the mixer track contains
      a % sign or there is a number but not a known mixer name.
      ab5f5461
    • Benjamin Otte's avatar
      oss4: Avoid g_quark_to_string (g_quark_from_string ()) madness · 85124337
      Benjamin Otte authored
      We to the strdup inside gst_oss4_mixer_control_get_translated_name()
      instead of in the only caller.
      85124337
    • Benjamin Otte's avatar
      Add -Wmissing-declarations -Wmissing-prototypes to configure flags · 6c916a14
      Benjamin Otte authored
      And fix all warnings
      6c916a14
    • Benjamin Otte's avatar
      11748597
    • Tim-Philipp Müller's avatar
    • Jan Schmidt's avatar
      oss4: Attempt to fix a compiler warning · 039604b1
      Jan Schmidt authored
      Don't store a const gchar * in a non-const gchar * local var.
      
      Also, make the translation string function static since it's only
      used in the one file.
      039604b1
    • Garrett D'Amore's avatar
      oss4: Enhancements to the mixer and audio output · 2a402de3
      Garrett D'Amore authored
      Code cleanups, general improvements, support for the
      new mixer flags in latest gst-plugins-base.
      
      Fixes: #584252
      Patch By: Brian Cameron <brian.cameron@sun.com>
      Patch By: Garrett D'Amore <garrett.damore@sun.com>
      2a402de3
    • Tim-Philipp Müller's avatar
    • Stefan Kost's avatar
      Don't install static libs for plugins. Fixes #550851 for -bad. · 5ac46548
      Stefan Kost authored
      Original commit message from CVS:
      * ext/alsaspdif/Makefile.am:
      * ext/amrwb/Makefile.am:
      * ext/apexsink/Makefile.am:
      * ext/arts/Makefile.am:
      * ext/artsd/Makefile.am:
      * ext/audiofile/Makefile.am:
      * ext/audioresample/Makefile.am:
      * ext/bz2/Makefile.am:
      * ext/cdaudio/Makefile.am:
      * ext/celt/Makefile.am:
      * ext/dc1394/Makefile.am:
      * ext/dirac/Makefile.am:
      * ext/directfb/Makefile.am:
      * ext/divx/Makefile.am:
      * ext/dts/Makefile.am:
      * ext/faac/Makefile.am:
      * ext/faad/Makefile.am:
      * ext/gsm/Makefile.am:
      * ext/hermes/Makefile.am:
      * ext/ivorbis/Makefile.am:
      * ext/jack/Makefile.am:
      * ext/jp2k/Makefile.am:
      * ext/ladspa/Makefile.am:
      * ext/lcs/Makefile.am:
      * ext/libfame/Makefile.am:
      * ext/libmms/Makefile.am:
      * ext/metadata/Makefile.am:
      * ext/mpeg2enc/Makefile.am:
      * ext/mplex/Makefile.am:
      * ext/musepack/Makefile.am:
      * ext/musicbrainz/Makefile.am:
      * ext/mythtv/Makefile.am:
      * ext/nas/Makefile.am:
      * ext/neon/Makefile.am:
      * ext/ofa/Makefile.am:
      * ext/polyp/Makefile.am:
      * ext/resindvd/Makefile.am:
      * ext/sdl/Makefile.am:
      * ext/shout/Makefile.am:
      * ext/snapshot/Makefile.am:
      * ext/sndfile/Makefile.am:
      * ext/soundtouch/Makefile.am:
      * ext/spc/Makefile.am:
      * ext/swfdec/Makefile.am:
      * ext/tarkin/Makefile.am:
      * ext/theora/Makefile.am:
      * ext/timidity/Makefile.am:
      * ext/twolame/Makefile.am:
      * ext/x264/Makefile.am:
      * ext/xine/Makefile.am:
      * ext/xvid/Makefile.am:
      * gst-libs/gst/app/Makefile.am:
      * gst-libs/gst/dshow/Makefile.am:
      * gst/aiffparse/Makefile.am:
      * gst/app/Makefile.am:
      * gst/audiobuffer/Makefile.am:
      * gst/bayer/Makefile.am:
      * gst/cdxaparse/Makefile.am:
      * gst/chart/Makefile.am:
      * gst/colorspace/Makefile.am:
      * gst/dccp/Makefile.am:
      * gst/deinterlace/Makefile.am:
      * gst/deinterlace2/Makefile.am:
      * gst/dvdspu/Makefile.am:
      * gst/festival/Makefile.am:
      * gst/filter/Makefile.am:
      * gst/flacparse/Makefile.am:
      * gst/flv/Makefile.am:
      * gst/games/Makefile.am:
      * gst/h264parse/Makefile.am:
      * gst/librfb/Makefile.am:
      * gst/mixmatrix/Makefile.am:
      * gst/modplug/Makefile.am:
      * gst/mpeg1sys/Makefile.am:
      * gst/mpeg4videoparse/Makefile.am:
      * gst/mpegdemux/Makefile.am:
      * gst/mpegtsmux/Makefile.am:
      * gst/mpegvideoparse/Makefile.am:
      * gst/mve/Makefile.am:
      * gst/nsf/Makefile.am:
      * gst/nuvdemux/Makefile.am:
      * gst/overlay/Makefile.am:
      * gst/passthrough/Makefile.am:
      * gst/pcapparse/Makefile.am:
      * gst/playondemand/Makefile.am:
      * gst/rawparse/Makefile.am:
      * gst/real/Makefile.am:
      * gst/rtjpeg/Makefile.am:
      * gst/rtpmanager/Makefile.am:
      * gst/scaletempo/Makefile.am:
      * gst/sdp/Makefile.am:
      * gst/selector/Makefile.am:
      * gst/smooth/Makefile.am:
      * gst/smoothwave/Makefile.am:
      * gst/speed/Makefile.am:
      * gst/speexresample/Makefile.am:
      * gst/stereo/Makefile.am:
      * gst/subenc/Makefile.am:
      * gst/tta/Makefile.am:
      * gst/vbidec/Makefile.am:
      * gst/videodrop/Makefile.am:
      * gst/videosignal/Makefile.am:
      * gst/virtualdub/Makefile.am:
      * gst/vmnc/Makefile.am:
      * gst/y4m/Makefile.am:
      * sys/acmenc/Makefile.am:
      * sys/cdrom/Makefile.am:
      * sys/dshowdecwrapper/Makefile.am:
      * sys/dshowsrcwrapper/Makefile.am:
      * sys/dvb/Makefile.am:
      * sys/dxr3/Makefile.am:
      * sys/fbdev/Makefile.am:
      * sys/oss4/Makefile.am:
      * sys/qcam/Makefile.am:
      * sys/qtwrapper/Makefile.am:
      * sys/vcd/Makefile.am:
      * sys/wininet/Makefile.am:
      * win32/common/config.h:
      Don't install static libs for plugins. Fixes #550851 for -bad.
      5ac46548
    • Jan Schmidt's avatar
      sys/oss4/: Add some spaces in translateable strings. · 11c7f351
      Jan Schmidt authored
      Original commit message from CVS:
      * sys/oss4/oss4-mixer.c:
      * sys/oss4/oss4-sink.c:
      * sys/oss4/oss4-source.c:
      Add some spaces in translateable strings.
      Fixes: #555969 #555968 #555965
      11c7f351
    • Frederic Crozat's avatar
      Make sure gettext returns translations in UTF-8 encoding rather than in the... · 33a70cfa
      Frederic Crozat authored
      Make sure gettext returns translations in UTF-8 encoding rather than in the current locale encoding (#546822).
      
      Original commit message from CVS:
      Patch by: Frederic Crozat <fcrozat@mandriva.org>
      * ext/sndfile/gstsf.c: (plugin_init):
      * sys/dvb/gstdvbsrc.c: (gst_dvbsrc_plugin_init):
      * sys/oss4/oss4-audio.c: (plugin_init):
      Make sure gettext returns translations in UTF-8 encoding rather
      than in the current locale encoding (#546822).
      33a70cfa
    • Stefan Kost's avatar
      Final round of doc updates. · f8c76291
      Stefan Kost authored
      Original commit message from CVS:
      * gst/rtpmanager/gstrtpjitterbuffer.c:
      * gst/speed/gstspeed.c:
      * gst/speexresample/gstspeexresample.c:
      * gst/videosignal/gstvideoanalyse.c:
      * gst/videosignal/gstvideodetect.c:
      * gst/videosignal/gstvideomark.c:
      * sys/dvb/gstdvbsrc.c:
      * sys/oss4/oss4-mixer.c:
      * sys/oss4/oss4-sink.c:
      * sys/oss4/oss4-source.c:
      * sys/wininet/gstwininetsrc.c:
      Final round of doc updates.
      f8c76291
    • Stefan Kost's avatar
      Do not use short_description in section docs for elements. We extract them... · adda5d48
      Stefan Kost authored
      Do not use short_description in section docs for elements. We extract them from element details and there will be war...
      
      Original commit message from CVS:
      * ext/dc1394/gstdc1394.c:
      * ext/ivorbis/vorbisdec.c:
      * ext/jack/gstjackaudiosink.c:
      * ext/metadata/gstmetadatademux.c:
      * ext/mythtv/gstmythtvsrc.c:
      * ext/theora/theoradec.c:
      * gst-libs/gst/app/gstappsink.c:
      * gst/bayer/gstbayer2rgb.c:
      * gst/deinterlace/gstdeinterlace.c:
      * gst/rawparse/gstaudioparse.c:
      * gst/rawparse/gstvideoparse.c:
      * gst/rtpmanager/gstrtpbin.c:
      * gst/rtpmanager/gstrtpclient.c:
      * gst/rtpmanager/gstrtpjitterbuffer.c:
      * gst/rtpmanager/gstrtpptdemux.c:
      * gst/rtpmanager/gstrtpsession.c:
      * gst/rtpmanager/gstrtpssrcdemux.c:
      * gst/selector/gstinputselector.c:
      * gst/selector/gstoutputselector.c:
      * gst/videosignal/gstvideoanalyse.c:
      * gst/videosignal/gstvideodetect.c:
      * gst/videosignal/gstvideomark.c:
      * sys/oss4/oss4-mixer.c:
      * sys/oss4/oss4-sink.c:
      * sys/oss4/oss4-source.c:
      Do not use short_description in section docs for elements. We extract
      them from element details and there will be warnings if they differ.
      Also fixing up the ChangeLog order.
      adda5d48
    • Stefan Kost's avatar
      tests/icles/test-oss4.c: Include stdlib.h. · 9675efa0
      Stefan Kost authored
      Original commit message from CVS:
      * tests/icles/test-oss4.c:
      Include stdlib.h.
      9675efa0
    • Tim-Philipp Müller's avatar
      tests/icles/: Small oss4 test that probes for available devices and retrieves... · b508c044
      Tim-Philipp Müller authored
      tests/icles/: Small oss4 test that probes for available devices and retrieves their caps and mixer tracks and all tha...
      
      Original commit message from CVS:
      * tests/icles/.cvsignore:
      * tests/icles/Makefile.am:
      * tests/icles/test-oss4.c: (opt_show_mixer_messages), (WAIT_TIME),
      (show_mixer_messages), (probe_mixer_tracks), (probe_pad),
      (probe_details), (probe_element), (main):
      Small oss4 test that probes for available devices and retrieves
      their caps and mixer tracks and all that. Also allows testing of
      mixer change messages on the bus.
      b508c044
    • Tim-Philipp Müller's avatar
      sys/oss4/: Make device-name probing in NULL state work better (e.g. for the... · 385cd9a8
      Tim-Philipp Müller authored
      sys/oss4/: Make device-name probing in NULL state work better (e.g. for the gnome-control-center sound capplet).
      
      Original commit message from CVS:
      * sys/oss4/oss4-mixer.c: (gst_oss4_mixer_open):
      * sys/oss4/oss4-property-probe.c:
      (gst_oss4_property_probe_find_device_name),
      (gst_oss4_property_probe_find_device_name_nofd):
      * sys/oss4/oss4-property-probe.h:
      * sys/oss4/oss4-sink.c: (gst_oss4_sink_get_property):
      * sys/oss4/oss4-source.c: (gst_oss4_source_get_property):
      Make device-name probing in NULL state work better (e.g. for the
      gnome-control-center sound capplet).
      385cd9a8
    • Clive Wright's avatar
      sys/oss4/oss4-mixer-slider.c: Apparently mono sliders have the mono value... · 0e4d8ef5
      Clive Wright authored
      sys/oss4/oss4-mixer-slider.c: Apparently mono sliders have the mono value repeated in the upper bits, so mask those o...
      
      Original commit message from CVS:
      Based on patch by: Clive Wright <clive_wright ntlworld com>
      * sys/oss4/oss4-mixer-slider.c: (gst_oss4_mixer_slider_unpack_volume):
      Apparently mono sliders have the mono value repeated in the upper bits,
      so mask those out when reading them. Probably makes the mixer applet
      work properly in some more cases.
      0e4d8ef5
    • Julien Moutte Moutte's avatar
      sys/oss4/: Fix arguments format in debug statements. · b33c37c2
      Julien Moutte Moutte authored
      Original commit message from CVS:
      2008-04-11  Julien Moutte  <julien@fluendo.com>
      
      * sys/oss4/oss4-mixer-enum.c:
      (gst_oss4_mixer_enum_get_values_locked):
      * sys/oss4/oss4-source.c: (gst_oss4_source_delay): Fix arguments
      format in debug statements.
      b33c37c2
    • Tim-Philipp Müller's avatar
      Add initial support for OSSv4. Mixer still needs a bit more love, but even magic has its limits. · 5f73998a
      Tim-Philipp Müller authored
      Original commit message from CVS:
      * configure.ac:
      * sys/Makefile.am:
      * sys/oss4/Makefile.am:
      * sys/oss4/oss4-audio.c:
      * sys/oss4/oss4-audio.h:
      * sys/oss4/oss4-mixer-enum.c:
      * sys/oss4/oss4-mixer-enum.h:
      * sys/oss4/oss4-mixer-slider.c:
      * sys/oss4/oss4-mixer-slider.h:
      * sys/oss4/oss4-mixer-switch.c:
      * sys/oss4/oss4-mixer-switch.h:
      * sys/oss4/oss4-mixer.c:
      * sys/oss4/oss4-mixer.h:
      * sys/oss4/oss4-property-probe.c:
      * sys/oss4/oss4-property-probe.h:
      * sys/oss4/oss4-sink.c:
      * sys/oss4/oss4-sink.h:
      * sys/oss4/oss4-soundcard.h:
      * sys/oss4/oss4-source.c:
      * sys/oss4/oss4-source.h:
      Add initial support for OSSv4. Mixer still needs a bit more love,
      but even magic has its limits.
      5f73998a
    • Alessandro Decina's avatar
    • Mark Nauwelaerts's avatar
      qtdemux: fix push based seeking · bcde9fab
      Mark Nauwelaerts authored
      ... where it comes down to transforming incoming BYTE segment
      to a corresponding TIME segment.
      
      Also fixes #609405.
      bcde9fab
    • Tim-Philipp Müller's avatar
      Move imagefreeze plugin from -bad to -good · 5fcbea7e
      Tim-Philipp Müller authored
      Hook up build infrastructure, docs and unit test for new plugin.
      
      Fixes #613786.
      5fcbea7e
    • Sebastian Dröge's avatar
      imagefreeze: Set fixed caps on the correct pad · 2e5262cd
      Sebastian Dröge authored
      This makes the sink getcaps function actually used instead of using
      the fixed caps function for it.
      2e5262cd
    • Benjamin Otte's avatar
      Add -Wmissing-declarations -Wmissing-prototypes to configure flags · e258a91f
      Benjamin Otte authored
      And fix all warnings
      e258a91f
    • Sebastian Dröge's avatar
    • Sebastian Dröge's avatar
      imagefreeze: Add some unit tests · f152f6e2
      Sebastian Dröge authored
      f152f6e2
    • Sebastian Dröge's avatar
    • Sebastian Dröge's avatar
    • Sebastian Dröge's avatar
      f1e07fcd
    • Tim-Philipp Müller's avatar
      Move capsfilter element from -bad to -good · f9ced7df
      Tim-Philipp Müller authored
      Hook up moved files to the build infrastructure and docs.
      
      Fixes #617739.
      f9ced7df
    • Sebastian Dröge's avatar
      capssetter: Some minor cleanup · 5aacc8dd
      Sebastian Dröge authored
      5aacc8dd
    • Benjamin Otte's avatar
      Add -Wold-style-definition · a200ec01
      Benjamin Otte authored
      and fix the warnings
      a200ec01
    • Benjamin Otte's avatar
    • Mark Nauwelaerts's avatar
      capssetter: add unit test · 0eee8477
      Mark Nauwelaerts authored
      0eee8477