mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
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:
parent
b13b59014c
commit
2139c81cdb
1 changed files with 2 additions and 2 deletions
|
@ -1436,9 +1436,9 @@ gst_camera_bin_audio_src_data_probe (GstPad * pad, GstPadProbeInfo * info,
|
||||||
GstCameraBin2 *camera = data;
|
GstCameraBin2 *camera = data;
|
||||||
gboolean ret = GST_PAD_PROBE_OK;
|
gboolean ret = GST_PAD_PROBE_OK;
|
||||||
|
|
||||||
if (GST_IS_BUFFER (data)) {
|
if (GST_IS_BUFFER (info->data)) {
|
||||||
if (G_UNLIKELY (camera->audio_send_newseg)) {
|
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);
|
GstClockTime ts = GST_BUFFER_TIMESTAMP (buf);
|
||||||
GstPad *peer;
|
GstPad *peer;
|
||||||
GstSegment segment;
|
GstSegment segment;
|
||||||
|
|
Loading…
Reference in a new issue