mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
ext/cdparanoia/gstcdparanoiasrc.c: Don't try to free NULL pointers.
Original commit message from CVS: * ext/cdparanoia/gstcdparanoiasrc.c: (gst_cd_paranoia_src_close), (gst_cd_paranoia_paranoia_callback): Don't try to free NULL pointers.
This commit is contained in:
parent
927b499e9d
commit
feecf1b666
2 changed files with 17 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2006-01-10 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* ext/cdparanoia/gstcdparanoiasrc.c: (gst_cd_paranoia_src_close),
|
||||||
|
(gst_cd_paranoia_paranoia_callback):
|
||||||
|
Don't try to free NULL pointers.
|
||||||
|
|
||||||
2006-01-10 Edward Hervey <edward@fluendo.com>
|
2006-01-10 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
* gst/audiorate/gstaudiorate.c: (gst_audio_rate_chain),
|
* gst/audiorate/gstaudiorate.c: (gst_audio_rate_chain),
|
||||||
|
|
|
@ -236,11 +236,15 @@ gst_cd_paranoia_src_close (GstCddaBaseSrc * cddabasesrc)
|
||||||
{
|
{
|
||||||
GstCdParanoiaSrc *src = GST_CD_PARANOIA_SRC (cddabasesrc);
|
GstCdParanoiaSrc *src = GST_CD_PARANOIA_SRC (cddabasesrc);
|
||||||
|
|
||||||
paranoia_free (src->p);
|
if (src->p) {
|
||||||
src->p = NULL;
|
paranoia_free (src->p);
|
||||||
|
src->p = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
cdda_close (src->d);
|
if (src->d) {
|
||||||
src->d = NULL;
|
cdda_close (src->d);
|
||||||
|
src->d = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
src->next_sector = -1;
|
src->next_sector = -1;
|
||||||
}
|
}
|
||||||
|
@ -248,7 +252,9 @@ gst_cd_paranoia_src_close (GstCddaBaseSrc * cddabasesrc)
|
||||||
static void
|
static void
|
||||||
gst_cd_paranoia_paranoia_callback (long inpos, int function)
|
gst_cd_paranoia_paranoia_callback (long inpos, int function)
|
||||||
{
|
{
|
||||||
/* do nothing for now, maybe emit signals later */
|
/* There is not much we can do here (not without a lot of trickery
|
||||||
|
* at least), since we don't have a pointer to our own element or at
|
||||||
|
* least the cdparanoia object */
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstBuffer *
|
static GstBuffer *
|
||||||
|
|
Loading…
Reference in a new issue