Fix formatting
This commit is contained in:
parent
1a2274bd2b
commit
66fdc935ac
|
@ -1299,7 +1299,7 @@ QByteArray TagReader::LoadEmbeddedArt(const QString& filename) const {
|
||||||
|
|
||||||
int pos = data.find('\0') + 1;
|
int pos = data.find('\0') + 1;
|
||||||
if ((pos > 0) && (pos < data.size())) {
|
if ((pos > 0) && (pos < data.size())) {
|
||||||
cover = QByteArray(data.data() + pos, data.size() - pos);
|
cover = QByteArray(data.data() + pos, data.size() - pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -162,7 +162,7 @@ GstElement* GstEnginePipeline::CreateDecodeBinFromUrl(const QUrl& url) {
|
||||||
#ifdef HAVE_SPOTIFY
|
#ifdef HAVE_SPOTIFY
|
||||||
if (url.scheme() == "spotify") {
|
if (url.scheme() == "spotify") {
|
||||||
new_bin = gst_bin_new("spotify_bin");
|
new_bin = gst_bin_new("spotify_bin");
|
||||||
if (!new_bin) return nullptr;
|
if (!new_bin) return nullptr;
|
||||||
|
|
||||||
// Create elements
|
// Create elements
|
||||||
GstElement* src = engine_->CreateElement("tcpserversrc", new_bin);
|
GstElement* src = engine_->CreateElement("tcpserversrc", new_bin);
|
||||||
|
@ -207,7 +207,7 @@ GstElement* GstEnginePipeline::CreateDecodeBinFromUrl(const QUrl& url) {
|
||||||
uri = url.toEncoded();
|
uri = url.toEncoded();
|
||||||
}
|
}
|
||||||
new_bin = engine_->CreateElement("uridecodebin");
|
new_bin = engine_->CreateElement("uridecodebin");
|
||||||
if (!new_bin) return nullptr;
|
if (!new_bin) return nullptr;
|
||||||
g_object_set(G_OBJECT(new_bin), "uri", uri.constData(), nullptr);
|
g_object_set(G_OBJECT(new_bin), "uri", uri.constData(), nullptr);
|
||||||
CHECKED_GCONNECT(G_OBJECT(new_bin), "drained", &SourceDrainedCallback,
|
CHECKED_GCONNECT(G_OBJECT(new_bin), "drained", &SourceDrainedCallback,
|
||||||
this);
|
this);
|
||||||
|
@ -468,7 +468,7 @@ bool GstEnginePipeline::Init() {
|
||||||
gst_pad_add_probe(pad, GST_PAD_PROBE_TYPE_BUFFER, HandoffCallback, this,
|
gst_pad_add_probe(pad, GST_PAD_PROBE_TYPE_BUFFER, HandoffCallback, this,
|
||||||
nullptr);
|
nullptr);
|
||||||
gst_object_unref(pad);
|
gst_object_unref(pad);
|
||||||
GstBus *bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline_));
|
GstBus* bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline_));
|
||||||
gst_bus_set_sync_handler(bus, BusCallbackSync, this, nullptr);
|
gst_bus_set_sync_handler(bus, BusCallbackSync, this, nullptr);
|
||||||
bus_cb_id_ = gst_bus_add_watch(bus, BusCallback, this);
|
bus_cb_id_ = gst_bus_add_watch(bus, BusCallback, this);
|
||||||
gst_object_unref(bus);
|
gst_object_unref(bus);
|
||||||
|
@ -531,7 +531,7 @@ bool GstEnginePipeline::InitFromUrl(const QUrl& url, qint64 end_nanosec) {
|
||||||
|
|
||||||
GstEnginePipeline::~GstEnginePipeline() {
|
GstEnginePipeline::~GstEnginePipeline() {
|
||||||
if (pipeline_) {
|
if (pipeline_) {
|
||||||
GstBus *bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline_));
|
GstBus* bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline_));
|
||||||
gst_bus_set_sync_handler(bus, nullptr, nullptr, nullptr);
|
gst_bus_set_sync_handler(bus, nullptr, nullptr, nullptr);
|
||||||
gst_object_unref(bus);
|
gst_object_unref(bus);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue