mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-22 05:38:36 +01:00
GstEnginePipeline: Change callback ID's to long
This commit is contained in:
parent
35a6d1437a
commit
4ec028e736
@ -112,14 +112,14 @@ GstEnginePipeline::GstEnginePipeline(QObject *parent)
|
||||
equalizer_(nullptr),
|
||||
equalizer_preamp_(nullptr),
|
||||
eventprobe_(nullptr),
|
||||
upstream_events_probe_cb_id_(-1UL),
|
||||
buffer_probe_cb_id_(-1UL),
|
||||
playbin_probe_cb_id_(-1UL),
|
||||
element_added_cb_id_(-1UL),
|
||||
pad_added_cb_id_(-1UL),
|
||||
notify_source_cb_id_(-1UL),
|
||||
about_to_finish_cb_id_(-1UL),
|
||||
notify_volume_cb_id_(-1UL),
|
||||
upstream_events_probe_cb_id_(0),
|
||||
buffer_probe_cb_id_(0),
|
||||
playbin_probe_cb_id_(0),
|
||||
element_added_cb_id_(-1),
|
||||
pad_added_cb_id_(-1),
|
||||
notify_source_cb_id_(-1),
|
||||
about_to_finish_cb_id_(-1),
|
||||
notify_volume_cb_id_(-1),
|
||||
logged_unsupported_analyzer_format_(false) {
|
||||
|
||||
eq_band_gains_.reserve(kEqBandCount);
|
||||
@ -138,27 +138,27 @@ GstEnginePipeline::~GstEnginePipeline() {
|
||||
fader_.reset();
|
||||
}
|
||||
|
||||
if (element_added_cb_id_ != -1UL) {
|
||||
if (element_added_cb_id_ != -1) {
|
||||
g_signal_handler_disconnect(G_OBJECT(audiobin_), element_added_cb_id_);
|
||||
}
|
||||
|
||||
if (pad_added_cb_id_ != -1UL) {
|
||||
if (pad_added_cb_id_ != -1) {
|
||||
g_signal_handler_disconnect(G_OBJECT(pipeline_), pad_added_cb_id_);
|
||||
}
|
||||
|
||||
if (notify_source_cb_id_ != -1UL) {
|
||||
if (notify_source_cb_id_ != -1) {
|
||||
g_signal_handler_disconnect(G_OBJECT(pipeline_), notify_source_cb_id_);
|
||||
}
|
||||
|
||||
if (about_to_finish_cb_id_ != -1UL) {
|
||||
if (about_to_finish_cb_id_ != -1) {
|
||||
g_signal_handler_disconnect(G_OBJECT(pipeline_), about_to_finish_cb_id_);
|
||||
}
|
||||
|
||||
if (notify_volume_cb_id_ != -1UL) {
|
||||
if (notify_volume_cb_id_ != -1) {
|
||||
g_signal_handler_disconnect(G_OBJECT(volume_), notify_volume_cb_id_);
|
||||
}
|
||||
|
||||
if (upstream_events_probe_cb_id_ > 0UL) {
|
||||
if (upstream_events_probe_cb_id_ != 0) {
|
||||
GstPad *pad = gst_element_get_static_pad(eventprobe_, "src");
|
||||
if (pad) {
|
||||
gst_pad_remove_probe(pad, upstream_events_probe_cb_id_);
|
||||
@ -166,7 +166,7 @@ GstEnginePipeline::~GstEnginePipeline() {
|
||||
}
|
||||
}
|
||||
|
||||
if (buffer_probe_cb_id_ > 0UL) {
|
||||
if (buffer_probe_cb_id_ != 0) {
|
||||
GstPad *pad = gst_element_get_static_pad(audioqueueconverter_, "src");
|
||||
if (pad) {
|
||||
gst_pad_remove_probe(pad, buffer_probe_cb_id_);
|
||||
|
@ -297,11 +297,11 @@ class GstEnginePipeline : public QObject {
|
||||
gulong upstream_events_probe_cb_id_;
|
||||
gulong buffer_probe_cb_id_;
|
||||
gulong playbin_probe_cb_id_;
|
||||
gulong element_added_cb_id_;
|
||||
gulong pad_added_cb_id_;
|
||||
gulong notify_source_cb_id_;
|
||||
gulong about_to_finish_cb_id_;
|
||||
gulong notify_volume_cb_id_;
|
||||
glong element_added_cb_id_;
|
||||
glong pad_added_cb_id_;
|
||||
glong notify_source_cb_id_;
|
||||
glong about_to_finish_cb_id_;
|
||||
glong notify_volume_cb_id_;
|
||||
|
||||
QThreadPool set_state_threadpool_;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user