summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapisubpicture.c
diff options
context:
space:
mode:
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>2010-03-11 12:30:12 +0000
committergb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>2010-03-11 12:30:12 +0000
commitac1243b28c206d317f20ef7f55227a77bde11b24 (patch)
treea3d3120fd79558a7a8cf6ad9dec8a08643d5af68 /gst-libs/gst/vaapi/gstvaapisubpicture.c
parente59eff6902732ebfcfcbdea72ab6a2af23f78326 (diff)
New refcounting policy. All getters return a reference, not a copy. So the user shall reference the object itself, should he wish so.
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapisubpicture.c')
-rw-r--r--gst-libs/gst/vaapi/gstvaapisubpicture.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapisubpicture.c b/gst-libs/gst/vaapi/gstvaapisubpicture.c
index 5ea5660b..4c6c4f42 100644
--- a/gst-libs/gst/vaapi/gstvaapisubpicture.c
+++ b/gst-libs/gst/vaapi/gstvaapisubpicture.c
@@ -60,7 +60,6 @@ gst_vaapi_subpicture_destroy(GstVaapiSubpicture *subpicture)
gst_vaapi_display_get_display(display),
priv->subpicture_id
);
- g_object_unref(display);
if (!vaapi_check_status(status, "vaDestroySubpicture()"))
g_warning("failed to destroy subpicture 0x%08x\n",
priv->subpicture_id);
@@ -94,7 +93,6 @@ gst_vaapi_subpicture_create(GstVaapiSubpicture *subpicture)
gst_vaapi_image_get_id(priv->image),
&subpicture_id
);
- g_object_unref(display);
if (!vaapi_check_status(status, "vaCreateSubpicture()"))
return FALSE;
@@ -218,7 +216,7 @@ gst_vaapi_subpicture_get_image(GstVaapiSubpicture *subpicture)
{
g_return_val_if_fail(GST_VAAPI_IS_SUBPICTURE(subpicture), NULL);
- return g_object_ref(subpicture->priv->image);
+ return subpicture->priv->image;
}
void