dvdbasebin: fix for pad probes update

This commit is contained in:
Wim Taymans 2011-11-07 17:13:11 +01:00
parent 62544179e2
commit 3f8af6f511

View file

@ -564,8 +564,9 @@ dvb_base_bin_init_cam (DvbBaseBin * dvbbasebin)
/* HACK: poll the cam in a buffer probe */ /* HACK: poll the cam in a buffer probe */
dvbbasebin->ts_pad = dvbbasebin->ts_pad =
gst_element_get_request_pad (dvbbasebin->mpegtsparse, "src_%u"); gst_element_get_request_pad (dvbbasebin->mpegtsparse, "src_%u");
gst_pad_add_probe (dvbbasebin->ts_pad, GST_PAD_PROBE_TYPE_BLOCK, gst_pad_add_probe (dvbbasebin->ts_pad,
dvb_base_bin_ts_pad_probe_cb, dvbbasebin, NULL); GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREAM, dvb_base_bin_ts_pad_probe_cb,
dvbbasebin, NULL);
} else { } else {
GST_ERROR_OBJECT (dvbbasebin, "could not open %s", ca_file); GST_ERROR_OBJECT (dvbbasebin, "could not open %s", ca_file);
cam_device_free (dvbbasebin->hwcam); cam_device_free (dvbbasebin->hwcam);