comparison gui/win32/interface.c @ 33666:0f592e8530f1

Change return code of guiGetEvent() to indicate success.
author ib
date Tue, 28 Jun 2011 10:55:17 +0000
parents b2071e60b20b
children 3b3e2d2f68c3
comparison
equal deleted inserted replaced
33665:69a8042c7017 33666:0f592e8530f1
693 { 693 {
694 mygui->uninit(mygui); 694 mygui->uninit(mygui);
695 free(mygui); 695 free(mygui);
696 mygui = NULL; 696 mygui = NULL;
697 exit_player(EXIT_QUIT); 697 exit_player(EXIT_QUIT);
698 return 0; 698 return 1;
699 } 699 }
700 default: 700 default:
701 break; 701 break;
702 } 702 }
703 break; 703 break;
748 break; 748 break;
749 } 749 }
750 default: 750 default:
751 mp_msg(MSGT_GPLAYER, MSGL_ERR, "[GUI] GOT UNHANDLED EVENT %i\n", type); 751 mp_msg(MSGT_GPLAYER, MSGL_ERR, "[GUI] GOT UNHANDLED EVENT %i\n", type);
752 } 752 }
753 return 0; 753 return 1;
754 } 754 }
755 755
756 /* This function adds/inserts one file into the gui playlist */ 756 /* This function adds/inserts one file into the gui playlist */
757 static int import_file_into_gui(char *pathname, int insert) 757 static int import_file_into_gui(char *pathname, int insert)
758 { 758 {