From f3f19aa7d711e192225d02ceabf4acf6c1c0783a Mon Sep 17 00:00:00 2001 From: Fredrik Modeen Date: Thu, 30 Apr 2009 12:37:59 +0000 Subject: [PATCH] Revert some out commented error tracing code, thanks Jerome for noticed this. (Got an error when I tried to spell your name correct) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30509 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/mediaplayer/Controller.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/apps/mediaplayer/Controller.cpp b/src/apps/mediaplayer/Controller.cpp index e34bb3641e..f273f0a8bc 100644 --- a/src/apps/mediaplayer/Controller.cpp +++ b/src/apps/mediaplayer/Controller.cpp @@ -231,14 +231,14 @@ Controller::SetTo(const entry_ref &ref) err = mf->InitCheck(); if (err != B_OK) { - //printf("Controller::SetTo: initcheck failed\n"); + printf("Controller::SetTo: initcheck failed\n"); _NotifyFileChanged(); return err; } int trackcount = mf->CountTracks(); if (trackcount <= 0) { - //printf("Controller::SetTo: trackcount %d\n", trackcount); + printf("Controller::SetTo: trackcount %d\n", trackcount); _NotifyFileChanged(); return B_MEDIA_NO_HANDLER; } @@ -248,15 +248,15 @@ Controller::SetTo(const entry_ref &ref) media_format f; err = t->EncodedFormat(&f); if (err != B_OK) { - //printf("Controller::SetTo: EncodedFormat failed for track index %d, error 0x%08lx (%s)\n", - // i, err, strerror(err)); + printf("Controller::SetTo: EncodedFormat failed for track index %d, error 0x%08lx (%s)\n", + i, err, strerror(err)); mf->ReleaseTrack(t); continue; } if (t->Duration() <= 0) { - //printf("Controller::SetTo: track index %d has no duration\n",i); - //mf->ReleaseTrack(t); + printf("Controller::SetTo: track index %d has no duration\n",i); + mf->ReleaseTrack(t); continue; } @@ -282,8 +282,8 @@ Controller::SetTo(const entry_ref &ref) SelectVideoTrack(0); if (fAudioTrackSupplier == NULL && fVideoTrackSupplier == NULL) { - //printf("Controller::SetTo: no audio or video tracks found or " - // "no decoders\n"); + printf("Controller::SetTo: no audio or video tracks found or " + "no decoders\n"); _NotifyFileChanged(); delete fMediaFile; fMediaFile = NULL; @@ -453,8 +453,8 @@ Controller::SelectVideoTrack(int n) fDuration = max_c(a, v); fVideoFrameRate = fVideoTrackSupplier->Format().u.raw_video.field_rate; if (fVideoFrameRate <= 0.0) { - //printf("Controller::SelectVideoTrack(%d) - invalid video frame rate: %.1f\n", n, - // fVideoFrameRate); + printf("Controller::SelectVideoTrack(%d) - invalid video frame rate: %.1f\n", + n, fVideoFrameRate); fVideoFrameRate = 25.0; }