ao: removed implementation of method cancel()
The method is empty, and we can simply set the method pointer to NULL instead.
This commit is contained in:
parent
dcd84c19cd
commit
8a882209c3
@ -144,11 +144,6 @@ static void audioOutputAo_finishDriver(void *data)
|
|||||||
ao_shutdown();
|
ao_shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void audioOutputAo_dropBufferedAudio(G_GNUC_UNUSED void *data)
|
|
||||||
{
|
|
||||||
/* not supported by libao */
|
|
||||||
}
|
|
||||||
|
|
||||||
static void audioOutputAo_closeDevice(void *data)
|
static void audioOutputAo_closeDevice(void *data)
|
||||||
{
|
{
|
||||||
AoData *ad = (AoData *)data;
|
AoData *ad = (AoData *)data;
|
||||||
@ -232,6 +227,5 @@ const struct audio_output_plugin aoPlugin = {
|
|||||||
.finish = audioOutputAo_finishDriver,
|
.finish = audioOutputAo_finishDriver,
|
||||||
.open = audioOutputAo_openDevice,
|
.open = audioOutputAo_openDevice,
|
||||||
.play = audioOutputAo_play,
|
.play = audioOutputAo_play,
|
||||||
.cancel = audioOutputAo_dropBufferedAudio,
|
|
||||||
.close = audioOutputAo_closeDevice,
|
.close = audioOutputAo_closeDevice,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user