Commit 40dee5b0 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

ext/: GstObjects must be unref'ed with gst_object_unref() instead of...

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.
parent 8a6c7865
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment