mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
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.
This commit is contained in:
parent
8a6c78658e
commit
40dee5b0da
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue