summaryrefslogtreecommitdiff
path: root/src/audio_dec
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio_dec')
-rw-r--r--src/audio_dec/xine_dts_decoder.c6
-rw-r--r--src/audio_dec/xine_musepack_decoder.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/audio_dec/xine_dts_decoder.c b/src/audio_dec/xine_dts_decoder.c
index 2f4039696..ffacf4a94 100644
--- a/src/audio_dec/xine_dts_decoder.c
+++ b/src/audio_dec/xine_dts_decoder.c
@@ -136,7 +136,7 @@ static inline void mute_channel (int16_t *const s16, const int num_channels) {
s16[i] = 0;
}
-static void dts_decode_frame (dts_decoder_t *this, const int64_t pts, const int preview_mode) {
+static void dts_decode_frame (dts_decoder_t *this, const int64_t pts) {
audio_buffer_t *audio_buffer;
uint32_t ac5_spdif_type=0;
@@ -441,9 +441,9 @@ static void dts_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
case 3: /* Ready for decode */
#if 0
- dtsdec_decode_frame (this, this->pts_list[0], buf->decoder_flags & BUF_FLAG_PREVIEW);
+ dtsdec_decode_frame (this, this->pts_list[0]);
#else
- dts_decode_frame (this, this->pts, buf->decoder_flags & BUF_FLAG_PREVIEW);
+ dts_decode_frame (this, this->pts);
#endif
case 4: /* Clear up ready for next frame */
this->pts = 0;
diff --git a/src/audio_dec/xine_musepack_decoder.c b/src/audio_dec/xine_musepack_decoder.c
index 93991832a..84aee9387 100644
--- a/src/audio_dec/xine_musepack_decoder.c
+++ b/src/audio_dec/xine_musepack_decoder.c
@@ -348,11 +348,11 @@ static void mpc_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
this->bits_per_sample,
this->sample_rate,
_x_ao_channels2mode(this->channels));
- }
- /* if the audio still isn't open, do not go any further with the decode */
- if (!this->output_open)
- return;
+ /* if the audio still isn't open, do not go any further with the decode */
+ if (!this->output_open)
+ return;
+ }
/* If we run out of space in our internal buffer we discard what's
* already been read */