summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2018-02-28 23:46:32 +0100
committerMathieu Duponchelle <mathieu@centricular.com>2018-02-28 23:46:44 +0100
commit7771488edb4bf57589ed63f5f998d1a28de38677 (patch)
treec3d3780d53ea59bfbc7fb3ab94f062a25d1f6eeb /gst
parent341228ea049cdcc0550598375bc1b670bbf14dcb (diff)
downloadgstreamer-plugins-bad-7771488edb4bf57589ed63f5f998d1a28de38677.tar.gz
mxfmux: instantiate adapter at the correct place
Diffstat (limited to 'gst')
-rw-r--r--gst/mxf/mxfmux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/mxf/mxfmux.c b/gst/mxf/mxfmux.c
index fff0c78f5..4977c2340 100644
--- a/gst/mxf/mxfmux.c
+++ b/gst/mxf/mxfmux.c
@@ -104,6 +104,7 @@ gst_mxf_mux_pad_class_init (GstMXFMuxPadClass * klass)
static void
gst_mxf_mux_pad_init (GstMXFMuxPad * pad)
{
+ pad->adapter = gst_adapter_new ();
}
static GstStaticPadTemplate src_templ = GST_STATIC_PAD_TEMPLATE ("src",
@@ -454,7 +455,6 @@ gst_mxf_mux_create_new_pad (GstAggregator * aggregator,
GST_PAD_SINK, "template", templ, NULL);
g_free (name);
pad->last_timestamp = 0;
- pad->adapter = gst_adapter_new ();
pad->writer = writer;
gst_pad_use_fixed_caps (GST_PAD_CAST (pad));