changeset 8:3b6cea0d1980

Disable audio support from liboggplayer, as it fails due to the video not having audio track.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 05 Aug 2013 14:33:53 +0300
parents 26ee741f8c08
children c5ffd12d5d02
files liboggplayer-src/src/open_close.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/liboggplayer-src/src/open_close.cpp	Mon Aug 05 14:33:35 2013 +0300
+++ b/liboggplayer-src/src/open_close.cpp	Mon Aug 05 14:33:53 2013 +0300
@@ -127,6 +127,7 @@
 			fprintf(stderr, "DDD: 0\n");
 			return false;
 		}
+#if 0
 		if (vorbis_p) {
 			vorbis_synthesis_init(&v_state, &v_info);
 			vorbis_block_init(&v_state, &v_block);
@@ -134,6 +135,7 @@
 			fprintf(stderr, "DDD: 1\n");
 			return false;
 		}
+#endif
 		return true;
 	}
 
@@ -185,6 +187,7 @@
 			return;
 		}
 
+#if 0
 		// 5) init audio conversion
 		int ret = SDL_BuildAudioCVT(&cvt, AUDIO_S16, v_info.channels,
 				v_info.rate, audio_format, channels, rate);
@@ -192,6 +195,8 @@
 			failbit = true;
 			return;
 		}
+#endif
+
 		// play() will allocate memory when needed
 		audio_buffer_size = 0;
 		audio_buffer = NULL;