Comment out some debugging messages when playing Theora files

(cherry picked from commit 9590282ae8)
This commit is contained in:
Wilson E. Alvarez 2018-04-02 16:47:06 -04:00 committed by Hein-Pieter van Braam
parent 66b36235c9
commit 7417b6adb4
1 changed files with 12 additions and 8 deletions

View File

@ -261,14 +261,12 @@ void VideoStreamPlaybackTheora::set_file(const String &p_file) {
/* look for further theora headers */ /* look for further theora headers */
while (theora_p && (theora_p < 3) && (ret = ogg_stream_packetout(&to, &op))) { while (theora_p && (theora_p < 3) && (ret = ogg_stream_packetout(&to, &op))) {
if (ret < 0) { if (ret < 0) {
fprintf(stderr, "Error parsing Theora stream headers; " fprintf(stderr, "Error parsing Theora stream headers; corrupt stream?\n");
"corrupt stream?\n");
clear(); clear();
return; return;
} }
if (!th_decode_headerin(&ti, &tc, &ts, &op)) { if (!th_decode_headerin(&ti, &tc, &ts, &op)) {
fprintf(stderr, "Error parsing Theora stream headers; " fprintf(stderr, "Error parsing Theora stream headers; corrupt stream?\n");
"corrupt stream?\n");
clear(); clear();
return; return;
} }
@ -312,9 +310,15 @@ void VideoStreamPlaybackTheora::set_file(const String &p_file) {
td = th_decode_alloc(&ti, ts); td = th_decode_alloc(&ti, ts);
px_fmt = ti.pixel_fmt; px_fmt = ti.pixel_fmt;
switch (ti.pixel_fmt) { switch (ti.pixel_fmt) {
case TH_PF_420: printf(" 4:2:0 video\n"); break; case TH_PF_420:
case TH_PF_422: printf(" 4:2:2 video\n"); break; //printf(" 4:2:0 video\n");
case TH_PF_444: printf(" 4:4:4 video\n"); break; break;
case TH_PF_422:
//printf(" 4:2:2 video\n");
break;
case TH_PF_444:
//printf(" 4:4:4 video\n");
break;
case TH_PF_RSVD: case TH_PF_RSVD:
default: default:
printf(" video\n (UNKNOWN Chroma sampling!)\n"); printf(" video\n (UNKNOWN Chroma sampling!)\n");
@ -519,7 +523,7 @@ void VideoStreamPlaybackTheora::update(float p_delta) {
#else #else
if (file && /*!videobuf_ready && */ no_theora && theora_eos) { if (file && /*!videobuf_ready && */ no_theora && theora_eos) {
#endif #endif
printf("video done, stopping\n"); //printf("video done, stopping\n");
stop(); stop();
return; return;
}; };