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
This commit is contained in:
Fredrik Modeen
2009-04-30 12:37:59 +00:00
parent 529067127e
commit f3f19aa7d7
+10 -10
View File
@@ -231,14 +231,14 @@ Controller::SetTo(const entry_ref &ref)
err = mf->InitCheck(); err = mf->InitCheck();
if (err != B_OK) { if (err != B_OK) {
//printf("Controller::SetTo: initcheck failed\n"); printf("Controller::SetTo: initcheck failed\n");
_NotifyFileChanged(); _NotifyFileChanged();
return err; return err;
} }
int trackcount = mf->CountTracks(); int trackcount = mf->CountTracks();
if (trackcount <= 0) { if (trackcount <= 0) {
//printf("Controller::SetTo: trackcount %d\n", trackcount); printf("Controller::SetTo: trackcount %d\n", trackcount);
_NotifyFileChanged(); _NotifyFileChanged();
return B_MEDIA_NO_HANDLER; return B_MEDIA_NO_HANDLER;
} }
@@ -248,15 +248,15 @@ Controller::SetTo(const entry_ref &ref)
media_format f; media_format f;
err = t->EncodedFormat(&f); err = t->EncodedFormat(&f);
if (err != B_OK) { if (err != B_OK) {
//printf("Controller::SetTo: EncodedFormat failed for track index %d, error 0x%08lx (%s)\n", printf("Controller::SetTo: EncodedFormat failed for track index %d, error 0x%08lx (%s)\n",
// i, err, strerror(err)); i, err, strerror(err));
mf->ReleaseTrack(t); mf->ReleaseTrack(t);
continue; continue;
} }
if (t->Duration() <= 0) { if (t->Duration() <= 0) {
//printf("Controller::SetTo: track index %d has no duration\n",i); printf("Controller::SetTo: track index %d has no duration\n",i);
//mf->ReleaseTrack(t); mf->ReleaseTrack(t);
continue; continue;
} }
@@ -282,8 +282,8 @@ Controller::SetTo(const entry_ref &ref)
SelectVideoTrack(0); SelectVideoTrack(0);
if (fAudioTrackSupplier == NULL && fVideoTrackSupplier == NULL) { if (fAudioTrackSupplier == NULL && fVideoTrackSupplier == NULL) {
//printf("Controller::SetTo: no audio or video tracks found or " printf("Controller::SetTo: no audio or video tracks found or "
// "no decoders\n"); "no decoders\n");
_NotifyFileChanged(); _NotifyFileChanged();
delete fMediaFile; delete fMediaFile;
fMediaFile = NULL; fMediaFile = NULL;
@@ -453,8 +453,8 @@ Controller::SelectVideoTrack(int n)
fDuration = max_c(a, v); fDuration = max_c(a, v);
fVideoFrameRate = fVideoTrackSupplier->Format().u.raw_video.field_rate; fVideoFrameRate = fVideoTrackSupplier->Format().u.raw_video.field_rate;
if (fVideoFrameRate <= 0.0) { if (fVideoFrameRate <= 0.0) {
//printf("Controller::SelectVideoTrack(%d) - invalid video frame rate: %.1f\n", n, printf("Controller::SelectVideoTrack(%d) - invalid video frame rate: %.1f\n",
// fVideoFrameRate); n, fVideoFrameRate);
fVideoFrameRate = 25.0; fVideoFrameRate = 25.0;
} }