Commit 408873a8 authored by Wim Taymans's avatar Wim Taymans
Browse files

avimux: take the pad from collectpads2 correctly

parent f3f54403
......@@ -1847,9 +1847,9 @@ gst_avi_mux_handle_event (GstCollectPads2 * pads, GstCollectData2 * data,
g_assert (avipad);
if (avipad->parent.is_video) {
ret = gst_avi_mux_vidsink_set_caps (GST_PAD (avipad), caps);
ret = gst_avi_mux_vidsink_set_caps (data->pad, caps);
} else {
ret = gst_avi_mux_audsink_set_caps (GST_PAD (avipad), caps);
ret = gst_avi_mux_audsink_set_caps (data->pad, caps);
}
gst_event_unref (event);
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment