summaryrefslogtreecommitdiffstats
path: root/gst
Commit message (Collapse)AuthorAgeFilesLines
* gst/matroska/matroska-mux.c: Also fix up pad templates to indicate that ↵Tim-Philipp Müller2008-01-081-1/+5
| | | | | | | | | | image/jpeg doesn't absolutely require the fra... Original commit message from CVS: * gst/matroska/matroska-mux.c: (COMMON_VIDEO_CAPS_NO_FRAMERATE), (videosink_templ): Also fix up pad templates to indicate that image/jpeg doesn't absolutely require the framerate property to be set (#504081).
* gst/matroska/matroska-mux.*: Keep track of first and last timestamps for ↵Wouter Cloetens2008-01-082-16/+48
| | | | | | | | | | | | | | | | | | | | each incoming stream, so we can calculate th... Original commit message from CVS: Based on patch by: Wouter Cloetens <wouter at mind be> * gst/matroska/matroska-mux.c: (gst_matroska_mux_video_pad_setcaps), (gst_matroska_mux_request_new_pad), (gst_matroska_mux_release_pad), (gst_matroska_mux_finish), (gst_matroska_mux_collected): * gst/matroska/matroska-mux.h: Keep track of first and last timestamps for each incoming stream, so we can calculate the total duration for live sources and other input where we can't query the duration from the start or where there's no constant framerate from which we can deduce the duration; also use calculated/observed duration if it is bigger than the previously queried duration. Furthermore, use gst_pad_query_peer_duration() and take into account that it may return TRUE but still a duration of CLOCK_TIME_NONE, which easily screws up comparisons when using unsigned integers. Fixes #504081.
* Make elements GST_BUFFER_FLAG_GAP aware and call ↵Sebastian Dröge2008-01-089-21/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | gst_base_transform_set_gap_aware for this. Original commit message from CVS: * configure.ac: * gst/audiofx/audioamplify.c: (gst_audio_amplify_clipping_method_get_type), (gst_audio_amplify_init), (gst_audio_amplify_transform_ip): * gst/audiofx/audiodynamic.c: (gst_audio_dynamic_init), (gst_audio_dynamic_transform_ip): * gst/audiofx/audioinvert.c: (gst_audio_invert_init), (gst_audio_invert_transform_ip): * gst/audiofx/audiopanorama.c: (gst_audio_panorama_init), (gst_audio_panorama_transform): * gst/level/gstlevel.c: (gst_level_init): Make elements GST_BUFFER_FLAG_GAP aware and call gst_base_transform_set_gap_aware for this. Bump core requirement to CVS. * gst/audiofx/audiochebyshevfreqband.c: (gst_audio_chebyshev_freq_band_transform_ip): * gst/audiofx/audiochebyshevfreqlimit.c: (gst_audio_chebyshev_freq_limit_transform_ip): Also sync GObject properties to the controller if operating in passthrough mode.
* gst/avi/gstavi.c: increase rank because no known issues anymore ...Thijs Vermeir2008-01-022-2/+21
| | | | | | | | Original commit message from CVS: * gst/avi/gstavi.c: increase rank because no known issues anymore ... * gst/avi/gstavisubtitle.c: send subtitle name to the srcpad
* gst/rtsp/gstrtspsrc.*: Implement redirect for the DESCRIBE reply. Fixes #506025.Wim Taymans2007-12-312-6/+57
| | | | | | | Original commit message from CVS: * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_send), (gst_rtspsrc_open): * gst/rtsp/gstrtspsrc.h: Implement redirect for the DESCRIBE reply. Fixes #506025.
* Fix 'xyz may be used uninitialized' compiler warnings caused by broken ↵Tim-Philipp Müller2007-12-262-2/+4
| | | | | | | | | | | | g_assert_not_reached() macro in GLib-2.15.x (i... Original commit message from CVS: * gst/avi/gstavidemux.c: (gst_avi_demux_loop): * gst/wavparse/gstwavparse.c: (gst_wavparse_chain): * sys/ximage/gstximagesrc.c: (composite_pixel): Fix 'xyz may be used uninitialized' compiler warnings caused by broken g_assert_not_reached() macro in GLib-2.15.x (it's not really nice to abort in any case). Fixes #505745.
* gst/: Ignore more.Tim-Philipp Müller2007-12-201-0/+1
| | | | | | | Original commit message from CVS: * gst/equalizer/.cvsignore: * gst/switch/.cvsignore: Ignore more.
* Add seeking support for avi subtitleThijs Vermeir2007-12-181-1/+24
| | | | | | | Original commit message from CVS: * gst/avi/gstavisubtitle.c: * tests/check/elements/avisubtitle.c: Add seeking support for avi subtitle
* gst/avi/gstavisubtitle.c: Detect other UTF byte order markers and convert to ↵Tim-Philipp Müller2007-12-181-16/+73
| | | | | | | | | | | UTF-8 as appropriate. Original commit message from CVS: * gst/avi/gstavisubtitle.c: (IS_BOM_UTF8), (IS_BOM_UTF16_BE), (IS_BOM_UTF16_LE), (IS_BOM_UTF32_BE), (IS_BOM_UTF32_LE), (gst_avi_subtitle_extract_file), (gst_avi_subtitle_parse_gab2_chunk): Detect other UTF byte order markers and convert to UTF-8 as appropriate.
* gst/avi/gstavisubtitle.*: Refactor a bit; fix name extraction; don't assume ↵Tim-Philipp Müller2007-12-182-94/+147
| | | | | | | | | | | | | | | | all the data in the chunk is actually sub... Original commit message from CVS: * gst/avi/gstavisubtitle.c: (src_template), (gst_avi_subtitle_extract_utf8_file), (gst_avi_subtitle_parse_gab2_chunk), (gst_avi_subtitle_chain), (gst_avi_subtitle_base_init), (gst_avi_subtitle_class_init), (gst_avi_subtitle_init), (gst_avi_subtitle_change_state): * gst/avi/gstavisubtitle.h: Refactor a bit; fix name extraction; don't assume all the data in the chunk is actually subtitle data, there may be padding at the end; fix GST_ELEMENT_ERROR usage; store extracted subtitle file so it's there to send again after a seek (for future use).
* Add avi subtitle element for bug #442034. Need seeking support and more ↵Thijs Vermeir2007-12-184-3/+252
| | | | | | | | | | | | | | | support for character conversion. Original commit message from CVS: * gst/avi/Makefile.am: * gst/avi/gstavi.c: * gst/avi/gstavisubtitle.c: * gst/avi/gstavisubtitle.h: * tests/check/Makefile.am: * tests/check/elements/avisubtitle.c: * win32/common/config.h: Add avi subtitle element for bug #442034. Need seeking support and more support for character conversion.
* gst/multifile/gstmultifilesrc.*: When subsequent files are read, if the file ↵David Schleef2007-12-172-1/+10
| | | | | | | | | | doesn't exist, send an EOS instead of ca... Original commit message from CVS: * gst/multifile/gstmultifilesrc.c: * gst/multifile/gstmultifilesrc.h: When subsequent files are read, if the file doesn't exist, send an EOS instead of causing an error.
* gst/id3demux/id3v2frames.c: Parse WOAF frames and put the result into ↵Tim-Philipp Müller2007-12-141-0/+5
| | | | | | | | | | | GST_TAG_CONTACT, which is where it would end up... Original commit message from CVS: * gst/id3demux/id3v2frames.c: (parse_url_link_frame): Parse WOAF frames and put the result into GST_TAG_CONTACT, which is where it would end up if the same information was put in a vorbis comment (don't think it's worth adding a new URI tag for this). Fixes #488112.
* gst/avi/gstavimux.c: Fix regression in stream numbering. Fixes #502655.Mark Nauwelaerts2007-12-111-1/+7
| | | | | | | Original commit message from CVS: Patch by: Mark Nauwelaerts <manauw skynet be> * gst/avi/gstavimux.c: (gst_avi_mux_start_file): Fix regression in stream numbering. Fixes #502655.
* gst/rtp/gstrtph264pay.*: Use higher performance start-code searching.Wai-Ming Ho2007-12-112-15/+280
| | | | | | | | | | | | | | Original commit message from CVS: Patch by: Wai-Ming Ho <webregbox at yahoo dot co dot uk> * gst/rtp/gstrtph264pay.c: (gst_rtp_h264_pay_init), (gst_rtp_h264_pay_finalize), (gst_rtp_h264_pay_setcaps), (next_start_code), (is_nal_equal), (gst_rtp_h264_pay_decode_nal), (encode_base64), (gst_rtp_h264_pay_parse_sps_pps), (gst_rtp_h264_pay_handle_buffer): * gst/rtp/gstrtph264pay.h: Use higher performance start-code searching. Parse NALs and store SPS, PPS and profile in the caps so that they can be used in the SDP. Fixes #502814.
* gst/multipart/multipartdemux.c: Copy timestamp from input to output. Not ↵Wouter Cloetens2007-12-111-1/+4
| | | | | | | | | | very perfect yet but better than nothing. Fi... Original commit message from CVS: Patch by: Wouter Cloetens <wouter at mind dot be> * gst/multipart/multipartdemux.c: (gst_multipart_demux_chain): Copy timestamp from input to output. Not very perfect yet but better than nothing. Fixes #503023.
* gst/equalizer/gstiirequalizer.c: Fix compilation.Sebastian Dröge2007-12-061-1/+1
| | | | | | | Original commit message from CVS: * gst/equalizer/gstiirequalizer.c: (gst_iir_equalizer_transform_ip): Fix compilation.
* gst/equalizer/gstiirequalizer.c: Don't process buffers in passthrough mode.Sebastian Dröge2007-12-061-0/+3
| | | | | | | Original commit message from CVS: * gst/equalizer/gstiirequalizer.c: (gst_iir_equalizer_transform_ip): Don't process buffers in passthrough mode.
* gst/filter/: The transform() methods are not called in passthrough mode so ↵Sebastian Dröge2007-12-062-8/+0
| | | | | | | | | | there's no need for checking if the elemen... Original commit message from CVS: * gst/filter/gstbpwsinc.c: (bpwsinc_transform): * gst/filter/gstlpwsinc.c: (lpwsinc_transform): The transform() methods are not called in passthrough mode so there's no need for checking if the element is in passthrough mode.
* gst/filter/: Sync the GObject properties with the controller even in ↵Sebastian Dröge2007-12-062-9/+8
| | | | | | | | | | passthrough mode to get consistent property values. Original commit message from CVS: * gst/filter/gstbpwsinc.c: (bpwsinc_transform): * gst/filter/gstlpwsinc.c: (lpwsinc_transform): Sync the GObject properties with the controller even in passthrough mode to get consistent property values.
* gst/audiofx/: The transform_ip() methods should do nothing if in passthrough ↵Sebastian Dröge2007-12-068-18/+15
| | | | | | | | | | | | | | | | | | | mode. Original commit message from CVS: * gst/audiofx/audioamplify.c: (gst_audio_amplify_transform_ip): * gst/audiofx/audiochebyshevfreqband.c: (gst_audio_chebyshev_freq_band_transform_ip): * gst/audiofx/audiochebyshevfreqlimit.c: (gst_audio_chebyshev_freq_limit_transform_ip): * gst/audiofx/audiodynamic.c: (gst_audio_dynamic_transform_ip): * gst/audiofx/audioinvert.c: (gst_audio_invert_transform_ip): The transform_ip() methods should do nothing if in passthrough mode. It might get non-writable buffers in that case but the buffer might as well be writable. * gst/audiofx/audiopanorama.c: (gst_audio_panorama_transform): The transform() methods won't be called in passthrough mode and otherwise the buffer is always writable so don't check here.
* gst/wavparse/gstwavparse.c: Fix seeking in .wav files again (#501775). Some ↵Tim-Philipp Müller2007-12-061-3/+2
| | | | | | | | | | people seem to think they don't need to ... Original commit message from CVS: * gst/wavparse/gstwavparse.c: (gst_wavparse_srcpad_event): Fix seeking in .wav files again (#501775). Some people seem to think they don't need to test their changes when they're just 'reflowing' some code.
* gst/autodetect/gstautovideosink.*: Fix docs.Wim Taymans2007-12-052-18/+167
| | | | | | | | | | | | | | | | | Original commit message from CVS: * gst/autodetect/gstautovideosink.c: (gst_auto_video_sink_class_init), (gst_auto_video_sink_dispose), (gst_auto_video_sink_init), (gst_auto_video_sink_create_element_with_pretty_name), (gst_auto_video_sink_find_best), (gst_auto_video_sink_set_property), (gst_auto_video_sink_get_property): * gst/autodetect/gstautovideosink.h: Fix docs. Use same error reporting code as autoaudiosink. Add property to filter sinks based on caps. Only select raw video sinks by default for backwards compat. API: GstAutoVideoSink::filter-caps
* gst/autodetect/gstautoaudiosink.*: Add property to filter sinks based on ↵Tommi Myöhänen2007-12-052-1/+105
| | | | | | | | | | | | | | | | caps. Only select raw audio sinks by default... Original commit message from CVS: Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com> * gst/autodetect/gstautoaudiosink.c: (gst_auto_audio_sink_class_init), (gst_auto_audio_sink_dispose), (gst_auto_audio_sink_init), (gst_auto_audio_sink_find_best), (gst_auto_audio_sink_set_property), (gst_auto_audio_sink_get_property): * gst/autodetect/gstautoaudiosink.h: Add property to filter sinks based on caps. Only select raw audio sinks by default for backwards compat. Fixes #417420. API: GstAutoAudioSink::filter-caps
* gst/videobox/gstvideobox.c: Initialise liboil in plugin_init()Arek Korbik2007-11-291-0/+2
| | | | | | | | Original commit message from CVS: Patch by: Arek Korbik <arkadini@gmail.com> * gst/videobox/gstvideobox.c: (plugin_init): Initialise liboil in plugin_init()
* gst/rtp/gstrtph263depay.c: Code beautification.Edward Hervey2007-11-281-99/+96
| | | | | | | | | | Original commit message from CVS: * gst/rtp/gstrtph263depay.c: (gst_rtp_h263_depay_class_init), (gst_rtp_h263_depay_process): Code beautification. Added debug statements. Don't bit-shift everything, just do operations on last/first byte instead.
* gst/rtp/gstrtpmp4adepay.c: Fix wrong comparison in overrun check. Fixes ↵Jayarama S. Santana2007-11-271-1/+1
| | | | | | | | | #499239 some more. Original commit message from CVS: Patch by: Jayarama S. Santana <sundarsantana at gmail dot com> * gst/rtp/gstrtpmp4adepay.c: (gst_rtp_mp4a_depay_process): Fix wrong comparison in overrun check. Fixes #499239 some more.
* gst/rtp/gstrtph263depay.*: Fix h263 depayloader so that ANY h263 decoder can ↵Edward Hervey2007-11-272-32/+97
| | | | | | | | | | | handle the outgoing stream. Original commit message from CVS: * gst/rtp/gstrtph263depay.c: (gst_rtp_h263_depay_init), (gst_rtp_h263_depay_process): * gst/rtp/gstrtph263depay.h: Fix h263 depayloader so that ANY h263 decoder can handle the outgoing stream.
* gst/rtp/gstrtpmp4adepay.*: Fix depayloading when multiple frames are inside ↵Wim Taymans2007-11-262-24/+74
| | | | | | | | | | | | one RTP packet. Original commit message from CVS: Based on Path by: Jayarama S. Santana <sundarsantana at gmail dot com> * gst/rtp/gstrtpmp4adepay.c: (gst_rtp_mp4a_depay_setcaps), (gst_rtp_mp4a_depay_process): * gst/rtp/gstrtpmp4adepay.h: Fix depayloading when multiple frames are inside one RTP packet. Fixes #499239.
* gst/level/gstlevel.c: Add GAP-flag support.Stefan Kost2007-11-261-6/+10
| | | | | | Original commit message from CVS: * gst/level/gstlevel.c: Add GAP-flag support.
* gst/rtp/gstrtph263depay.c: Read the I flag for Mode A h263 rtp stream and ↵Edward Hervey2007-11-261-0/+5
| | | | | | | | | | set the Original commit message from CVS: * gst/rtp/gstrtph263depay.c: (gst_rtp_h263_depay_process): Read the I flag for Mode A h263 rtp stream and set the GST_BUFFER_FLAG_DELTA_UNIT accordingly. Fixes #499383
* gst/spectrum/gstspectrum.c: Use dispose and finalize. Dispose can be called ↵Stefan Kost2007-11-261-1/+11
| | | | | | | | multiple times. Original commit message from CVS: * gst/spectrum/gstspectrum.c: Use dispose and finalize. Dispose can be called multiple times.
* gst/level/gstlevel.c: Remove some dead code and do cleanups.Stefan Kost2007-11-261-28/+25
| | | | | | Original commit message from CVS: * gst/level/gstlevel.c: Remove some dead code and do cleanups.
* gst/qtdemux/qtdemux.c: Implement reverse playback support.Julien Moutte2007-11-241-31/+214
| | | | | | | | | | | | Original commit message from CVS: 2007-11-24 Julien MOUTTE <julien@moutte.net> * gst/qtdemux/qtdemux.c: (gst_qtdemux_find_segment), (gst_qtdemux_move_stream), (gst_qtdemux_do_seek), (gst_qtdemux_seek_to_previous_keyframe), (gst_qtdemux_activate_segment), (gst_qtdemux_advance_sample), (gst_qtdemux_loop_state_movie), (gst_qtdemux_loop): Implement reverse playback support.
* gst/filter/: Post a GST_MESSAGE_LATENCY if the latency changes.Sebastian Dröge2007-11-212-0/+4
| | | | | | | Original commit message from CVS: * gst/filter/gstbpwsinc.c: (bpwsinc_set_property): * gst/filter/gstlpwsinc.c: (lpwsinc_set_property): Post a GST_MESSAGE_LATENCY if the latency changes.
* gst/equalizer/: Remove preset iface again. We'll re-add this after its been ↵Stefan Kost2007-11-212-22/+4
| | | | | | | | | | released in -good. Original commit message from CVS: * gst/equalizer/gstiirequalizer10bands.c: * gst/equalizer/gstiirequalizer3bands.c: Remove preset iface again. We'll re-add this after its been released in -good.
* Fix build on Mac OS X 10.5Julien Moutte2007-11-201-1/+2
| | | | | | | | | | | | Original commit message from CVS: 2007-11-20 Julien MOUTTE <julien@moutte.net> * ext/taglib/gsttaglibmux.c: (gst_tag_lib_mux_render_tag), (gst_tag_lib_mux_adjust_event_offsets): * gst/qtdemux/qtdemux.c: (qtdemux_parse_theora_extension): * sys/osxaudio/Makefile.am: * sys/osxvideo/cocoawindow.h: * sys/osxvideo/cocoawindow.m: Fix build on Mac OS X 10.5
* gst/equalizer/: Activate preset iface and upload two presets here.Stefan Kost2007-11-192-4/+22
| | | | | | | Original commit message from CVS: * gst/equalizer/gstiirequalizer10bands.c: * gst/equalizer/gstiirequalizer3bands.c: Activate preset iface and upload two presets here.
* gst/rtp/gstrtpmp2tpay.*: Fill the MTU with as many packets as possible. ↵Jordi Jaen Pallares2007-11-152-19/+82
| | | | | | | | | | | | Fixes #491323. Original commit message from CVS: Patch by: Jordi Jaen Pallares <jordijp at gmail dot com> * gst/rtp/gstrtpmp2tpay.c: (gst_rtp_mp2t_pay_class_init), (gst_rtp_mp2t_pay_init), (gst_rtp_mp2t_pay_finalize), (gst_rtp_mp2t_pay_flush), (gst_rtp_mp2t_pay_handle_buffer): * gst/rtp/gstrtpmp2tpay.h: Fill the MTU with as many packets as possible. Fixes #491323.
* gst/rtsp/gstrtspsrc.c: Fix some more leaks. Fixes #497007.Tommi Myöhänen2007-11-151-0/+3
| | | | | | | Original commit message from CVS: Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com> * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_setup_streams): Fix some more leaks. Fixes #497007.
* gst/rtsp/gstrtspsrc.c: Fix 3 pad leaks. Fixes #496983.Tommi Myöhänen2007-11-151-2/+10
| | | | | | | | Original commit message from CVS: Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com> * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_stream_free), (gst_rtspsrc_stream_configure_tcp): Fix 3 pad leaks. Fixes #496983.
* gst/rtp/gstrtph264depay.c: Fix small leak. Fixes #497017.Tommi Myöhänen2007-11-151-0/+1
| | | | | | | Original commit message from CVS: Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com> * gst/rtp/gstrtph264depay.c: (gst_rtp_h264_depay_setcaps): Fix small leak. Fixes #497017.
* gst/qtdemux/: Add suppport for theora in quicktime according to XiphQT.Wim Taymans2007-11-153-0/+148
| | | | | | | | | | | Original commit message from CVS: * gst/qtdemux/qtdemux.c: (gst_qtdemux_change_state), (gst_qtdemux_prepare_current_sample), (gst_qtdemux_loop_state_movie), (qtdemux_parse_theora_extension), (qtdemux_parse_node), (qtdemux_parse_trak), (qtdemux_video_caps): * gst/qtdemux/qtdemux_fourcc.h: * gst/qtdemux/qtdemux_types.c: Add suppport for theora in quicktime according to XiphQT.
* gst/id3demux/: We don't want the same string multiple times in a tag list ↵Tim-Philipp Müller2007-11-143-13/+16
| | | | | | | | | | | | for the same tag ever, for any tag, not jus... Original commit message from CVS: * gst/id3demux/id3tags.c: * gst/id3demux/id3tags.h: * gst/id3demux/id3v2frames.c: (id3v2_tag_to_taglist): We don't want the same string multiple times in a tag list for the same tag ever, for any tag, not just for GST_TAG_GENRE, so make sure this doesn't happen and remove special-case code for GST_TAG_GENRE.
* gst/rtsp/gstrtspsrc.c: Don't leak sdp message contents (fixes #496773).Tim-Philipp Müller2007-11-142-0/+3
| | | | | | | | Original commit message from CVS: * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_open): Don't leak sdp message contents (fixes #496773). * gst/udp/gstudpsink.c: (gst_udpsink_finalize): Don't leak URI string.
* gst/rtsp/gstrtspsrc.c: Don't leak event, don't leak range (fixes #496752).Tommi Myöhänen2007-11-141-0/+3
| | | | | | | | Original commit message from CVS: Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com> * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_handle_src_event), (gst_rtspsrc_parse_range): Don't leak event, don't leak range (fixes #496752).
* gst/alpha/gstalphacolor.c: Detect RGBA/BGRA correctly on little endian systems.Arek Korbik2007-11-141-1/+1
| | | | | | | | Original commit message from CVS: Patch by: Arek Korbik <arkadini@gmail.com> * gst/alpha/gstalphacolor.c: (gst_alpha_color_set_caps): Detect RGBA/BGRA correctly on little endian systems.
* gst/matroska/: Extract palette data for dvd subpicture streams and send it ↵Mark Nauwelaerts2007-11-132-0/+68
| | | | | | | | | | | | | | downstream as custom gstreamer dvd event (... Original commit message from CVS: Patch by: Mark Nauwelaerts <manauw skynet be> * gst/matroska/matroska-demux.c: (gst_matroska_demux_push_dvd_clut_change_event), (gst_matroska_demux_parse_blockgroup_or_simpleblock), (gst_matroska_demux_subtitle_caps): * gst/matroska/matroska-ids.h: Extract palette data for dvd subpicture streams and send it downstream as custom gstreamer dvd event (fixes #453417).
* gst/: Return the result in _activate_pull(). Don't ref element there.Stefan Kost2007-11-132-15/+13
| | | | | | | Original commit message from CVS: * gst/avi/gstavidemux.c: * gst/wavparse/gstwavparse.c: Return the result in _activate_pull(). Don't ref element there.
* gst/wavparse/gstwavparse.c: Ref the element when we should, but not when we ↵Stefan Kost2007-11-131-13/+10
| | | | | | | | | | | its not needed. Reflow the event_handling... Original commit message from CVS: * gst/wavparse/gstwavparse.c: (gst_wavparse_stream_headers), (gst_wavparse_pad_convert), (gst_wavparse_pad_query), (gst_wavparse_srcpad_event): Ref the element when we should, but not when we its not needed. Reflow the event_handling to not leak the event.