mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
tools: update for latest context API changes
This commit is contained in:
parent
03c3738b67
commit
7954ac2ad7
1 changed files with 3 additions and 2 deletions
|
@ -818,12 +818,13 @@ event_loop (GstElement * pipeline, gboolean blocking, gboolean do_progress,
|
|||
|
||||
context2 = gst_element_get_context (pipeline);
|
||||
if (context2) {
|
||||
GstStructure *s1, *s2;
|
||||
const GstStructure *s1;
|
||||
GstStructure *s2;
|
||||
|
||||
/* Merge structures */
|
||||
context2 = gst_context_make_writable (context2);
|
||||
s1 = gst_context_get_structure (context1);
|
||||
s2 = gst_context_get_structure (context2);
|
||||
s2 = gst_context_writable_structure (context2);
|
||||
gst_structure_foreach (s1, merge_structures, s2);
|
||||
gst_element_set_context (pipeline, context2);
|
||||
gst_context_unref (context2);
|
||||
|
|
Loading…
Reference in a new issue