camerabin2: use correct variable when handling pad probe buffers

Pad probe data is in the GstPadProbeInfo, not in the user data
parameter.
This commit is contained in:
Thiago Santos 2012-09-06 01:53:07 -03:00
parent b13b59014c
commit 2139c81cdb

View file

@ -1436,9 +1436,9 @@ gst_camera_bin_audio_src_data_probe (GstPad * pad, GstPadProbeInfo * info,
GstCameraBin2 *camera = data;
gboolean ret = GST_PAD_PROBE_OK;
if (GST_IS_BUFFER (data)) {
if (GST_IS_BUFFER (info->data)) {
if (G_UNLIKELY (camera->audio_send_newseg)) {
GstBuffer *buf = GST_BUFFER_CAST (data);
GstBuffer *buf = GST_BUFFER_CAST (info->data);
GstClockTime ts = GST_BUFFER_TIMESTAMP (buf);
GstPad *peer;
GstSegment segment;