mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-30 08:51:11 +02:00
raspi: improve set_volume
This commit is contained in:
@@ -96,9 +96,9 @@ next_packet:
|
||||
pthread_mutex_unlock(&pi->omx_active_mutex);
|
||||
goto next_packet;
|
||||
} else if (current->msgtype == MSG_SET_VOLUME) {
|
||||
fprintf(stderr, "[acodec] SET_VOLUME %lld\n", current->data->PTS);
|
||||
omx_audio_volume(&pi->audio_render, current->data->PTS);
|
||||
codec_queue_free_item(codec,current);
|
||||
fprintf(stderr, "[acodec] SET_VOLUME %ld\n", (long)current->data);
|
||||
omx_audio_volume(&pi->audio_render, (long)current->data);
|
||||
free(current);
|
||||
pthread_mutex_unlock(&pi->omx_active_mutex);
|
||||
goto next_packet;
|
||||
}
|
||||
|
Reference in New Issue
Block a user