*: use references instead of pointers
This commit is contained in:
@@ -181,7 +181,7 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
bool success = decoder_plugin_scan_file(plugin, path,
|
||||
bool success = decoder_plugin_scan_file(*plugin, path,
|
||||
&print_handler, NULL);
|
||||
if (!success && plugin->scan_stream != NULL) {
|
||||
Mutex mutex;
|
||||
@@ -209,7 +209,7 @@ int main(int argc, char **argv)
|
||||
|
||||
mutex.unlock();
|
||||
|
||||
success = decoder_plugin_scan_stream(plugin, is,
|
||||
success = decoder_plugin_scan_stream(*plugin, is,
|
||||
&print_handler, NULL);
|
||||
is->Close();
|
||||
}
|
||||
|
@@ -184,7 +184,7 @@ int main(int argc, char **argv)
|
||||
decoder.initialized = false;
|
||||
|
||||
if (decoder.plugin->file_decode != NULL) {
|
||||
decoder_plugin_file_decode(decoder.plugin, &decoder,
|
||||
decoder_plugin_file_decode(*decoder.plugin, &decoder,
|
||||
decoder.uri);
|
||||
} else if (decoder.plugin->stream_decode != NULL) {
|
||||
Mutex mutex;
|
||||
@@ -201,7 +201,7 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
decoder_plugin_stream_decode(decoder.plugin, &decoder, is);
|
||||
decoder_plugin_stream_decode(*decoder.plugin, &decoder, is);
|
||||
|
||||
is->Close();
|
||||
} else {
|
||||
|
@@ -91,7 +91,7 @@ load_audio_output(const char *name)
|
||||
|
||||
Error error;
|
||||
struct audio_output *ao =
|
||||
audio_output_new(*param, &dummy_player_control, error);
|
||||
audio_output_new(*param, dummy_player_control, error);
|
||||
if (ao == nullptr)
|
||||
g_printerr("%s\n", error.GetMessage());
|
||||
|
||||
|
Reference in New Issue
Block a user