mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
gst/wavparse/gstwavparse.c: make PAUSED=>READY=>PAUSED=READY work by not destroying NULL sourcepads
Original commit message from CVS: * gst/wavparse/gstwavparse.c: (gst_wavparse_destroy_sourcepad), (gst_wavparse_create_sourcepad): make PAUSED=>READY=>PAUSED=READY work by not destroying NULL sourcepads
This commit is contained in:
parent
ba9981b804
commit
692fd964ae
2 changed files with 12 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2004-05-09 Benjamin Otte <otte@gnome.org>
|
||||||
|
|
||||||
|
* gst/wavparse/gstwavparse.c: (gst_wavparse_destroy_sourcepad),
|
||||||
|
(gst_wavparse_create_sourcepad):
|
||||||
|
make PAUSED=>READY=>PAUSED=READY work by not destroying NULL
|
||||||
|
sourcepads
|
||||||
|
|
||||||
2004-05-09 Benjamin Otte <otte@gnome.org>
|
2004-05-09 Benjamin Otte <otte@gnome.org>
|
||||||
|
|
||||||
* ext/alsa/gstalsasink.c: (gst_alsa_sink_check_event):
|
* ext/alsa/gstalsasink.c: (gst_alsa_sink_check_event):
|
||||||
|
|
|
@ -215,15 +215,16 @@ gst_wavparse_init (GstWavParse * wavparse)
|
||||||
static void
|
static void
|
||||||
gst_wavparse_destroy_sourcepad (GstWavParse * wavparse)
|
gst_wavparse_destroy_sourcepad (GstWavParse * wavparse)
|
||||||
{
|
{
|
||||||
gst_element_remove_pad (GST_ELEMENT (wavparse), wavparse->srcpad);
|
if (wavparse->srcpad) {
|
||||||
wavparse->srcpad = NULL;
|
gst_element_remove_pad (GST_ELEMENT (wavparse), wavparse->srcpad);
|
||||||
|
wavparse->srcpad = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_wavparse_create_sourcepad (GstWavParse * wavparse)
|
gst_wavparse_create_sourcepad (GstWavParse * wavparse)
|
||||||
{
|
{
|
||||||
if (wavparse->srcpad)
|
gst_wavparse_destroy_sourcepad (wavparse);
|
||||||
gst_wavparse_destroy_sourcepad (wavparse);
|
|
||||||
|
|
||||||
/* source */
|
/* source */
|
||||||
wavparse->srcpad =
|
wavparse->srcpad =
|
||||||
|
|
Loading…
Reference in a new issue