X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=plugins%2Fbeos%2Fintf_beos.cpp;h=2ec14a8614ad2721989cbd685a9af54b4f0e454b;hb=2afb724073836ef8f73b29ab61d45066f0fbc4b8;hp=dc532b9cbb4c42297fecb7259c1e41991bd011b6;hpb=317723fa7e68551c7eac63b8d05f9f854f5c0089;p=vlc diff --git a/plugins/beos/intf_beos.cpp b/plugins/beos/intf_beos.cpp index dc532b9cbb..2ec14a8614 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.12 2001/03/04 16:20:16 sam Exp $ + * $Id: intf_beos.cpp,v 1.13 2001/03/05 01:29:25 sam Exp $ * * Authors: Jean-Marc Dressler * Samuel Hocevar @@ -99,7 +99,7 @@ InterfaceWindow::InterfaceWindow( BRect frame, const char *name , intf_thread_t float yStart = 10.0; SetName( "interface" ); - SetTitle("VideoLan Client for BeOS"); + SetTitle(VOUT_TITLE " (BeOS interface)"); BView* p_view; @@ -204,7 +204,10 @@ void InterfaceWindow::MessageReceived( BMessage * p_message ) if (p_intf->p_input != NULL ) { // silence the sound, otherwise very horrible - p_main->p_aout->vol = 0; + if (p_main->p_aout != NULL) + { + p_main->p_aout->vol = 0; + } snooze(400000); input_SetStatus(p_intf->p_input, INPUT_STATUS_END); } @@ -213,7 +216,10 @@ void InterfaceWindow::MessageReceived( BMessage * p_message ) // starts playing in normal mode // if (p_intf->p_input != NULL ) // { -// p_main->p_aout->vol = vol_val; +// if (p_main->p_aout != NULL) +// { +// p_main->p_aout->vol = vol_val; +// } // snooze(400000); // input_SetStatus(p_intf->p_input, INPUT_STATUS_PLAY); // playback_status = PLAYING; @@ -226,13 +232,19 @@ void InterfaceWindow::MessageReceived( BMessage * p_message ) // mute the volume if currently playing if (playback_status == PLAYING) { - p_main->p_aout->vol = 0; + if (p_main->p_aout != NULL) + { + p_main->p_aout->vol = 0; + } playback_status = PAUSED; } else // restore the volume { - p_main->p_aout->vol = vol_val; + if (p_main->p_aout != NULL) + { + p_main->p_aout->vol = vol_val; + } playback_status = PLAYING; } snooze(400000); @@ -243,7 +255,10 @@ void InterfaceWindow::MessageReceived( BMessage * p_message ) // cycle the fast playback modes if (p_intf->p_input != NULL ) { - p_main->p_aout->vol = 0; + if (p_main->p_aout != NULL) + { + p_main->p_aout->vol = 0; + } snooze(400000); input_SetStatus(p_intf->p_input, INPUT_STATUS_FASTER); } @@ -252,7 +267,10 @@ void InterfaceWindow::MessageReceived( BMessage * p_message ) // cycle the slow playback modes if (p_intf->p_input != NULL ) { - p_main->p_aout->vol = 0; + if (p_main->p_aout != NULL) + { + p_main->p_aout->vol = 0; + } snooze(400000); input_SetStatus(p_intf->p_input, INPUT_STATUS_SLOWER); }