libs: decoder: remove gst_vaapi_decoder_unref()

Replaced by gst_object_unref() in tests

https://bugzilla.gnome.org/show_bug.cgi?id=796308
This commit is contained in:
Víctor Manuel Jáquez Leal 2018-05-21 11:56:11 +02:00
parent ad5eb75187
commit 4649ac1c38
4 changed files with 3 additions and 19 deletions

View file

@ -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

View file

@ -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

View file

@ -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);

View file

@ -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);