GstClockTime min_lat, max_lat, our_lat;
gst_query_parse_latency (query, &live, &min_lat, &max_lat);
- if (ffmpegdec->format.video.fps_n > 0)
+ if (ffmpegdec->out_info.fps_n > 0)
our_lat =
gst_util_uint64_scale_int (ffmpegdec->context->has_b_frames *
- GST_SECOND, ffmpegdec->format.video.fps_d,
- ffmpegdec->format.video.fps_n);
+ GST_SECOND, ffmpegdec->out_info.fps_d,
+ ffmpegdec->out_info.fps_n);
else
our_lat =
gst_util_uint64_scale_int (ffmpegdec->context->has_b_frames *
}
break;
default:
- res = gst_pad_query_default (pad, query);
+ res = gst_pad_query_default (pad, parent, query);
break;
}
g_free (longname);
g_free (description);
- gst_element_class_add_static_pad_template (element_class,
- &gst_post_proc_src_template);
- gst_element_class_add_static_pad_template (element_class,
- &gst_post_proc_sink_template);
+ gst_element_class_add_pad_template (element_class,
+ gst_static_pad_template_get (&gst_post_proc_src_template));
+ gst_element_class_add_pad_template (element_class,
+ gst_static_pad_template_get (&gst_post_proc_sink_template));
klass->filterid = ppidx;
}