From 5f238ea9e912cf740acaa7fdb5e85e8d99a456fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 8 Dec 2003 08:42:37 +0000 Subject: [PATCH] Fixes git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5625 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/prefs/media/MediaWindow.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/prefs/media/MediaWindow.cpp b/src/prefs/media/MediaWindow.cpp index 69b6185185..6257ac158e 100644 --- a/src/prefs/media/MediaWindow.cpp +++ b/src/prefs/media/MediaWindow.cpp @@ -246,15 +246,15 @@ MediaWindow::InitMedia(bool first) } void *listItem; - while(listItem = mListView->RemoveItem((int32)0)) + while((listItem = mListView->RemoveItem((int32)0))) delete listItem; - while(listItem = mAudioOutputs.RemoveItem((int32)0)) + while((listItem = mAudioOutputs.RemoveItem((int32)0))) delete listItem; - while(listItem = mAudioInputs.RemoveItem((int32)0)) + while((listItem = mAudioInputs.RemoveItem((int32)0))) delete listItem; - while(listItem = mVideoOutputs.RemoveItem((int32)0)) + while((listItem = mVideoOutputs.RemoveItem((int32)0))) delete listItem; - while(listItem = mVideoInputs.RemoveItem((int32)0)) + while((listItem = mVideoInputs.RemoveItem((int32)0))) delete listItem; MediaListItem *item, *mixer, *audio, *video; @@ -262,6 +262,8 @@ MediaWindow::InitMedia(bool first) // Grab Media Info FindNodes(B_MEDIA_RAW_AUDIO, B_PHYSICAL_OUTPUT, mAudioOutputs); FindNodes(B_MEDIA_RAW_AUDIO, B_PHYSICAL_INPUT, mAudioInputs); + FindNodes(B_MEDIA_ENCODED_AUDIO, B_PHYSICAL_OUTPUT, mAudioOutputs); + FindNodes(B_MEDIA_ENCODED_AUDIO, B_PHYSICAL_INPUT, mAudioInputs); FindNodes(B_MEDIA_RAW_VIDEO, B_PHYSICAL_OUTPUT, mVideoOutputs); FindNodes(B_MEDIA_RAW_VIDEO, B_PHYSICAL_INPUT, mVideoInputs); FindNodes(B_MEDIA_ENCODED_VIDEO, B_PHYSICAL_OUTPUT, mVideoOutputs); @@ -638,7 +640,7 @@ MediaWindow::UpdateProgress(int stage, const char * message, void * cookie) { MediaAlert *alert = static_cast(cookie); PRINT(("stage : %i\n", stage)); - char *string; + char *string = "Unknown stage"; switch(stage) { case 10: string = "Stopping Media Server...";