mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
libs: minor correction for logical consistency
GstVaapiDecode is a descendant of GstVaapiMiniObject, so, thought we should use its methods, even though it doesn't change functionality. GstVaapiPixmap, GstVaapiTexture and GstVaapiWindow are descendant of GstVaapiObject, hence its methods shall be used. https://bugzilla.gnome.org/show_bug.cgi?id=772554
This commit is contained in:
parent
84f7a3ec51
commit
abc2480b10
4 changed files with 14 additions and 13 deletions
|
@ -576,7 +576,8 @@ void
|
|||
gst_vaapi_decoder_replace (GstVaapiDecoder ** old_decoder_ptr,
|
||||
GstVaapiDecoder * new_decoder)
|
||||
{
|
||||
gst_vaapi_object_replace (old_decoder_ptr, new_decoder);
|
||||
gst_vaapi_mini_object_replace ((GstVaapiMiniObject **) old_decoder_ptr,
|
||||
GST_VAAPI_MINI_OBJECT (new_decoder));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -111,14 +111,14 @@ gst_vaapi_pixmap_new_from_native(const GstVaapiPixmapClass *pixmap_class,
|
|||
/* Inline reference counting for core libgstvaapi library */
|
||||
#ifdef IN_LIBGSTVAAPI_CORE
|
||||
#define gst_vaapi_pixmap_ref_internal(pixmap) \
|
||||
((gpointer)gst_vaapi_mini_object_ref(GST_VAAPI_MINI_OBJECT(pixmap)))
|
||||
((gpointer)gst_vaapi_object_ref(GST_VAAPI_OBJECT(pixmap)))
|
||||
|
||||
#define gst_vaapi_pixmap_unref_internal(pixmap) \
|
||||
gst_vaapi_mini_object_unref(GST_VAAPI_MINI_OBJECT(pixmap))
|
||||
gst_vaapi_object_unref(GST_VAAPI_OBJECT(pixmap))
|
||||
|
||||
#define gst_vaapi_pixmap_replace_internal(old_pixmap_ptr, new_pixmap) \
|
||||
gst_vaapi_mini_object_replace((GstVaapiMiniObject **)(old_pixmap_ptr), \
|
||||
GST_VAAPI_MINI_OBJECT(new_pixmap))
|
||||
gst_vaapi_object_replace((GstVaapiObject **)(old_pixmap_ptr), \
|
||||
GST_VAAPI_OBJECT(new_pixmap))
|
||||
|
||||
#undef gst_vaapi_pixmap_ref
|
||||
#define gst_vaapi_pixmap_ref(pixmap) \
|
||||
|
|
|
@ -138,14 +138,14 @@ gst_vaapi_texture_new_internal (const GstVaapiTextureClass * klass,
|
|||
/* Inline reference counting for core libgstvaapi library */
|
||||
#ifdef IN_LIBGSTVAAPI_CORE
|
||||
#define gst_vaapi_texture_ref_internal(texture) \
|
||||
((gpointer)gst_vaapi_mini_object_ref (GST_VAAPI_MINI_OBJECT (texture)))
|
||||
((gpointer)gst_vaapi_object_ref (GST_VAAPI_OBJECT (texture)))
|
||||
|
||||
#define gst_vaapi_texture_unref_internal(texture) \
|
||||
gst_vaapi_mini_object_unref (GST_VAAPI_MINI_OBJECT (texture))
|
||||
gst_vaapi_object_unref (GST_VAAPI_OBJECT (texture))
|
||||
|
||||
#define gst_vaapi_texture_replace_internal(old_texture_ptr, new_texture) \
|
||||
gst_vaapi_mini_object_replace ((GstVaapiMiniObject **)(old_texture_ptr), \
|
||||
GST_VAAPI_MINI_OBJECT (new_texture))
|
||||
gst_vaapi_object_replace ((GstVaapiObject **)(old_texture_ptr), \
|
||||
GST_VAAPI_OBJECT (new_texture))
|
||||
|
||||
#undef gst_vaapi_texture_ref
|
||||
#define gst_vaapi_texture_ref(texture) \
|
||||
|
|
|
@ -123,14 +123,14 @@ gst_vaapi_window_new_internal (const GstVaapiWindowClass * window_class,
|
|||
/* Inline reference counting for core libgstvaapi library */
|
||||
#ifdef IN_LIBGSTVAAPI_CORE
|
||||
#define gst_vaapi_window_ref_internal(window) \
|
||||
((gpointer)gst_vaapi_mini_object_ref(GST_VAAPI_MINI_OBJECT(window)))
|
||||
((gpointer)gst_vaapi_object_ref(GST_VAAPI_OBJECT(window)))
|
||||
|
||||
#define gst_vaapi_window_unref_internal(window) \
|
||||
gst_vaapi_mini_object_unref(GST_VAAPI_MINI_OBJECT(window))
|
||||
gst_vaapi_object_unref(GST_VAAPI_OBJECT(window))
|
||||
|
||||
#define gst_vaapi_window_replace_internal(old_window_ptr, new_window) \
|
||||
gst_vaapi_mini_object_replace((GstVaapiMiniObject **)(old_window_ptr), \
|
||||
GST_VAAPI_MINI_OBJECT(new_window))
|
||||
gst_vaapi_object_replace((GstVaapiObject **)(old_window_ptr), \
|
||||
GST_VAAPI_OBJECT(new_window))
|
||||
|
||||
#undef gst_vaapi_window_ref
|
||||
#define gst_vaapi_window_ref(window) \
|
||||
|
|
Loading…
Reference in a new issue