summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2015-11-02 18:20:07 +0100
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2015-11-09 16:18:19 +0100
commit959c13933d5e48fff3f3603b25ec94daecf25490 (patch)
treed9be41576856cb4a1bd884297f79fbde3db3354f /gst
parent5d0ab369248672d338e1ff5a50e91d9d704fd9e3 (diff)
downloadgst-vaapi-959c13933d5e48fff3f3603b25ec94daecf25490.tar.gz
vaapivideocontext: rename context structure
The context structure is named "display" which is too generic. The contrary happens, for example, with GstGL, what uses the same name as the context, and its logs make more sense. This patch renames the context structure with the same name as the context, thus GST_PTR_FORMAT can pretty print it. https://bugzilla.gnome.org/show_bug.cgi?id=757598
Diffstat (limited to 'gst')
-rw-r--r--gst/vaapi/gstvaapivideocontext.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/vaapi/gstvaapivideocontext.c b/gst/vaapi/gstvaapivideocontext.c
index 53447755..36737a0b 100644
--- a/gst/vaapi/gstvaapivideocontext.c
+++ b/gst/vaapi/gstvaapivideocontext.c
@@ -61,8 +61,8 @@ gst_vaapi_video_context_new_with_display (GstVaapiDisplay * display,
context = gst_context_new (GST_VAAPI_DISPLAY_CONTEXT_TYPE_NAME, persistent);
structure = gst_context_writable_structure (context);
- gst_structure_set (structure, "display", GST_VAAPI_TYPE_DISPLAY,
- display, NULL);
+ gst_structure_set (structure, GST_VAAPI_DISPLAY_CONTEXT_TYPE_NAME,
+ GST_VAAPI_TYPE_DISPLAY, display, NULL);
return context;
}
@@ -77,8 +77,8 @@ gst_vaapi_video_context_get_display (GstContext * context,
GST_VAAPI_DISPLAY_CONTEXT_TYPE_NAME) == 0, FALSE);
structure = gst_context_get_structure (context);
- return gst_structure_get (structure, "display", GST_VAAPI_TYPE_DISPLAY,
- display_ptr, NULL);
+ return gst_structure_get (structure, GST_VAAPI_DISPLAY_CONTEXT_TYPE_NAME,
+ GST_VAAPI_TYPE_DISPLAY, display_ptr, NULL);
}
static gboolean