summaryrefslogtreecommitdiff
path: root/toxav/media.c
diff options
context:
space:
mode:
authormannol <eniz_vukovic@hotmail.com>2014-03-12 00:22:49 +0100
committermannol <eniz_vukovic@hotmail.com>2014-03-12 00:22:49 +0100
commit9ba7cb7e76935e8e8c1ae0d5614cae2d248b22ae (patch)
tree23d1f00323021cb26c7edf989f0957141649d662 /toxav/media.c
parent54b1dafb0b6f56e1f2f153cf7bf457be9053ae09 (diff)
Removed logging to stderr and fixed timeout handling
Diffstat (limited to 'toxav/media.c')
-rw-r--r--toxav/media.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/toxav/media.c b/toxav/media.c
index f6c33309..a9a4adb8 100644
--- a/toxav/media.c
+++ b/toxav/media.c
@@ -197,7 +197,7 @@ int init_video_decoder(CodecState *cs)
197{ 197{
198 if (vpx_codec_dec_init_ver(&cs->v_decoder, VIDEO_CODEC_DECODER_INTERFACE, NULL, 0, 198 if (vpx_codec_dec_init_ver(&cs->v_decoder, VIDEO_CODEC_DECODER_INTERFACE, NULL, 0,
199 VPX_DECODER_ABI_VERSION) != VPX_CODEC_OK) { 199 VPX_DECODER_ABI_VERSION) != VPX_CODEC_OK) {
200 fprintf(stderr, "Init video_decoder failed!\n"); 200 /*fprintf(stderr, "Init video_decoder failed!\n");*/
201 return -1; 201 return -1;
202 } 202 }
203 203
@@ -210,7 +210,7 @@ int init_audio_decoder(CodecState *cs, uint32_t audio_channels)
210 cs->audio_decoder = opus_decoder_create(cs->audio_sample_rate, audio_channels, &rc ); 210 cs->audio_decoder = opus_decoder_create(cs->audio_sample_rate, audio_channels, &rc );
211 211
212 if ( rc != OPUS_OK ) { 212 if ( rc != OPUS_OK ) {
213 fprintf(stderr, "Error while starting audio decoder!\n"); 213 /*fprintf(stderr, "Error while starting audio decoder!\n");*/
214 return -1; 214 return -1;
215 } 215 }
216 216
@@ -224,7 +224,7 @@ int init_video_encoder(CodecState *cs, uint16_t width, uint16_t height, uint32_t
224 int res = vpx_codec_enc_config_default(VIDEO_CODEC_ENCODER_INTERFACE, &cfg, 0); 224 int res = vpx_codec_enc_config_default(VIDEO_CODEC_ENCODER_INTERFACE, &cfg, 0);
225 225
226 if (res) { 226 if (res) {
227 fprintf(stderr, "Failed to get config: %s\n", vpx_codec_err_to_string(res)); 227 /*fprintf(stderr, "Failed to get config: %s\n", vpx_codec_err_to_string(res));*/
228 return -1; 228 return -1;
229 } 229 }
230 230
@@ -234,7 +234,7 @@ int init_video_encoder(CodecState *cs, uint16_t width, uint16_t height, uint32_t
234 234
235 if (vpx_codec_enc_init_ver(&cs->v_encoder, VIDEO_CODEC_ENCODER_INTERFACE, &cfg, 0, 235 if (vpx_codec_enc_init_ver(&cs->v_encoder, VIDEO_CODEC_ENCODER_INTERFACE, &cfg, 0,
236 VPX_ENCODER_ABI_VERSION) != VPX_CODEC_OK) { 236 VPX_ENCODER_ABI_VERSION) != VPX_CODEC_OK) {
237 fprintf(stderr, "Failed to initialize encoder\n"); 237 /*fprintf(stderr, "Failed to initialize encoder\n");*/
238 return -1; 238 return -1;
239 } 239 }
240 240