From b8539d07f36f6434739de6425fabc994c3e94f24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Borel?= Date: Mon, 9 Apr 2001 04:15:30 +0000 Subject: [PATCH] -Fixed a compilation issue due to a change in an interface structure --- plugins/beos/intf_beos.cpp | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/plugins/beos/intf_beos.cpp b/plugins/beos/intf_beos.cpp index 3276aca42c..c43a907bc0 100644 --- a/plugins/beos/intf_beos.cpp +++ b/plugins/beos/intf_beos.cpp @@ -2,7 +2,7 @@ * intf_beos.cpp: beos interface ***************************************************************************** * Copyright (C) 1999, 2000, 2001 VideoLAN - * $Id: intf_beos.cpp,v 1.22 2001/03/25 17:09:14 richards Exp $ + * $Id: intf_beos.cpp,v 1.23 2001/04/09 04:15:30 stef Exp $ * * Authors: Jean-Marc Dressler * Samuel Hocevar @@ -553,30 +553,19 @@ int LanguageMenu::GetChannels() for (i = 0; i < p_intf->p_input->stream.i_selected_es_number; i++) { - if ((kind == 0) && p_intf->p_input->stream.pp_selected_es[i]->b_audio) - { - p_es = p_intf->p_input->stream.pp_selected_es[i]; - } - else if ((kind == 1) && p_intf->p_input->stream.pp_selected_es[i]->b_spu) + if (kind == + p_intf->p_input->stream.pp_selected_es[i]->i_cat) { p_es = p_intf->p_input->stream.pp_selected_es[i]; } } for (i = 0; i < p_intf->p_input->stream.i_es_number; i++) { - if (kind == 0) //audio - { - b_found = p_intf->p_input->stream.pp_es[i]->b_audio; - } - else - { - b_found = p_intf->p_input->stream.pp_es[i]->b_spu; - } - if (b_found) + if (kind == p_intf->p_input->stream.pp_es[i]->i_cat) { psz_name = p_intf->p_input->stream.pp_es[i]->psz_desc; BMessage *msg; - if (kind == 0) //audio + if (kind == AUDIO_ES) //audio { msg = new BMessage(SELECT_CHANNEL); msg->AddInt32("channel", i);