summaryrefslogtreecommitdiff
path: root/gst/camerabin2
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.com>2012-09-06 01:53:07 -0300
committerThiago Santos <thiago.sousa.santos@collabora.com>2012-09-06 01:53:07 -0300
commit2139c81cdb22303d6946edf877b2b12a311e2862 (patch)
tree2a4a83b24c95e226a6865aa4219149a8c9549223 /gst/camerabin2
parentb13b59014c81835911796856e78b525056be2015 (diff)
downloadgstreamer-plugins-bad-2139c81cdb22303d6946edf877b2b12a311e2862.tar.gz
camerabin2: use correct variable when handling pad probe buffers
Pad probe data is in the GstPadProbeInfo, not in the user data parameter.
Diffstat (limited to 'gst/camerabin2')
-rw-r--r--gst/camerabin2/gstcamerabin2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c
index 08a8b259d..697f21a79 100644
--- a/gst/camerabin2/gstcamerabin2.c
+++ b/gst/camerabin2/gstcamerabin2.c
@@ -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;