Skip to content
Snippets Groups Projects
Commit 8663382c authored by Daichi Tsuna's avatar Daichi Tsuna
Browse files

audioadapter: fix arg of GST_BUFFER_OFFSET_IS_VALID

parent 9729111b
No related branches found
No related tags found
No related merge requests found
...@@ -92,8 +92,9 @@ static guint samples_remaining(GstBuffer *buf, guint skip) ...@@ -92,8 +92,9 @@ static guint samples_remaining(GstBuffer *buf, guint skip)
static guint64 offset(GstAudioAdapter *adapter) static guint64 offset(GstAudioAdapter *adapter)
{ {
guint64 offset = GST_BUFFER_OFFSET(GST_BUFFER(g_queue_peek_head(adapter->queue))); GstBuffer *buf = GST_BUFFER(g_queue_peek_head(adapter->queue));
return GST_BUFFER_OFFSET_IS_VALID(offset) ? offset + adapter->skip : GST_BUFFER_OFFSET_NONE; guint64 offset = GST_BUFFER_OFFSET(buf);
return GST_BUFFER_OFFSET_IS_VALID(buf) ? offset + adapter->skip : GST_BUFFER_OFFSET_NONE;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment