Disable analyzer for other bit depths than 16

This removes the splitting of the pipeline with the tee.
Move HandoffCallback to the source, which makes it possible to convert the audio buffer in HandoffCallback later.
Until then just disable analyzer for other formats.

Removes tee and probe queue converter and sink
This commit is contained in:
Jonas Kvinge
2019-10-19 01:45:24 +02:00
parent 4d888dfce8
commit abeb580228
4 changed files with 35 additions and 55 deletions

View File

@@ -25,6 +25,8 @@
#include <gst/gstbuffer.h>
#include <QString>
class GstEnginePipeline;
class GstBufferConsumer {
@@ -33,7 +35,7 @@ public:
// This is called in some unspecified GStreamer thread.
// Ownership of the buffer is transferred to the BufferConsumer and it should gst_buffer_unref it.
virtual void ConsumeBuffer(GstBuffer *buffer, int pipeline_id) = 0;
virtual void ConsumeBuffer(GstBuffer *buffer, const int pipeline_id, const QString &format) = 0;
};
#endif // GSTBUFFERCONSUMER_H