libs: decoder: remove gst_vaapi_decoder_unref()

Replaced by gst_object_unref() in tests

https://bugzilla.gnome.org/show_bug.cgi?id=796308
parent ad5eb751
......@@ -586,19 +586,6 @@ gst_vaapi_decoder_init (GstVaapiDecoder * decoder)
gst_video_codec_frame_unref);
}
/**
* gst_vaapi_decoder_unref:
* @decoder: a #GstVaapiDecoder
*
* Atomically decreases the reference count of the @decoder by one. If
* the reference count reaches zero, the decoder will be free'd.
*/
void
gst_vaapi_decoder_unref (GstVaapiDecoder * decoder)
{
gst_object_unref (decoder);
}
/**
* gst_vaapi_decoder_replace:
* @old_decoder_ptr: a pointer to a #GstVaapiDecoder
......
......@@ -80,9 +80,6 @@ typedef enum {
GType
gst_vaapi_decoder_get_type (void) G_GNUC_CONST;
void
gst_vaapi_decoder_unref (GstVaapiDecoder * decoder);
void
gst_vaapi_decoder_replace (GstVaapiDecoder ** old_decoder_ptr,
GstVaapiDecoder * new_decoder);
......@@ -146,7 +143,7 @@ gboolean
gst_vaapi_decoder_update_caps (GstVaapiDecoder * decoder, GstCaps * caps);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDecoder, gst_vaapi_decoder_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDecoder, gst_object_unref)
#endif
G_END_DECLS
......
......@@ -134,7 +134,7 @@ main (int argc, char *argv[])
if (pixmap)
gst_vaapi_pixmap_unref (pixmap);
gst_vaapi_surface_proxy_unref (proxy);
gst_vaapi_decoder_unref (decoder);
gst_object_unref (decoder);
gst_vaapi_window_unref (window);
gst_object_unref (display);
gst_object_unref (display2);
......
......@@ -164,7 +164,7 @@ main (int argc, char *argv[])
gst_video_overlay_composition_unref (compo);
gst_vaapi_surface_proxy_unref (proxy);
gst_vaapi_decoder_unref (decoder);
gst_object_unref (decoder);
gst_vaapi_window_unref (window);
gst_object_unref (display);
g_free (g_codec_str);
......
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