Fix caps warning when there's no element linked downstream, and pass
not-linked flow return value correctly up the chain, so we error out
correctly. Fixes #588717.
mux->last_ts = GST_BUFFER_TIMESTAMP (buffer);
}
- caps = gst_pad_get_negotiated_caps (mux->srcpad);
+ caps = gst_static_pad_template_get_caps (&src_factory);
gst_buffer_set_caps (buffer, caps);
gst_caps_unref (caps);
static GstFlowReturn
gst_ogg_mux_process_best_pad (GstOggMux * ogg_mux, GstOggPad * best)
{
+ GstFlowReturn ret = GST_FLOW_OK;
gboolean delta_unit;
- GstFlowReturn ret;
gint64 granulepos = 0;
GstClockTime timestamp, gp_time;
}
}
- return GST_FLOW_OK;
+ return ret;
}
/* all_pads_eos: