diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2005-12-12 10:40:42 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2005-12-12 10:40:42 +0000 |
commit | 6435014c2605e1e22d22fb58f135347bc13e412a (patch) | |
tree | 9d487637280f21c097329a06f61d214d6200a9d8 /ext/wavpack | |
parent | dfa22f08c60e11530eca7676bb9b3be5241a9fcc (diff) | |
download | gst-plugins-bad-6435014c2605e1e22d22fb58f135347bc13e412a.tar.gz gst-plugins-bad-6435014c2605e1e22d22fb58f135347bc13e412a.tar.bz2 gst-plugins-bad-6435014c2605e1e22d22fb58f135347bc13e412a.zip |
ext/: GstObjects must be unref'ed with gst_object_unref() instead of g_object_unref(), otherwise things break for GLi...
Original commit message from CVS:
* ext/ivorbis/vorbisfile.c: (gst_ivorbisfile_loop):
* ext/libmms/gstmms.c: (gst_mms_src_query), (gst_mms_create):
* ext/musepack/gstmusepackdec.c: (gst_musepackdec_src_query),
(gst_musepackdec_loop):
* ext/swfdec/gstswfdec.c: (gst_swfdec_video_link),
(gst_swfdec_src_query):
* ext/wavpack/gstwavpackparse.c: (gst_wavpack_parse_src_query):
GstObjects must be unref'ed with gst_object_unref() instead of
g_object_unref(), otherwise things break for GLib-2.6 users.
Diffstat (limited to 'ext/wavpack')
-rw-r--r-- | ext/wavpack/gstwavpackparse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/wavpack/gstwavpackparse.c b/ext/wavpack/gstwavpackparse.c index 4ba0bf52..726c8841 100644 --- a/ext/wavpack/gstwavpackparse.c +++ b/ext/wavpack/gstwavpackparse.c @@ -159,7 +159,7 @@ gst_wavpack_parse_src_query (GstPad * pad, GstQuery * query) if (format == GST_FORMAT_TIME) { value = wavpackparse->timestamp; gst_query_set_duration (query, format, value); - g_object_unref (wavpackparse); + gst_object_unref (wavpackparse); ret = TRUE; break; } @@ -171,20 +171,20 @@ gst_wavpack_parse_src_query (GstPad * pad, GstQuery * query) if (wavpackparse->total_samples == 0) { value = 0; gst_query_set_duration (query, format, value); - g_object_unref (wavpackparse); + gst_object_unref (wavpackparse); ret = FALSE; break; } value = ((gdouble) wavpackparse->total_samples / (gdouble) wavpackparse->samplerate) * GST_SECOND; gst_query_set_duration (query, format, value); - g_object_unref (wavpackparse); + gst_object_unref (wavpackparse); ret = TRUE; break; } break; default: - g_object_unref (wavpackparse); + gst_object_unref (wavpackparse); ret = gst_pad_query_default (pad, query); break; } |