[MPlayer-cvslog] r21781 - trunk/Gui/win32/interface.c
vayne
subversion at mplayerhq.hu
Thu Dec 28 16:36:55 CET 2006
Author: vayne
Date: Thu Dec 28 16:36:54 2006
New Revision: 21781
Modified:
trunk/Gui/win32/interface.c
Log:
remove two unused functions.
Modified: trunk/Gui/win32/interface.c
==============================================================================
--- trunk/Gui/win32/interface.c (original)
+++ trunk/Gui/win32/interface.c Thu Dec 28 16:36:54 2006
@@ -480,73 +480,6 @@
cfg_write();
}
-static void add_vf(char * str)
-{
- mp_msg(MSGT_GPLAYER, MSGL_STATUS, MSGTR_AddingVideoFilter, str);
- if (vf_settings)
- {
- int i = 0;
- while (vf_settings[i].name)
- if (!strcmp(vf_settings[i++].name, str))
- {
- i = -1;
- break;
- }
- if (i != -1)
- {
- vf_settings = realloc(vf_settings, (i + 2) * sizeof(m_obj_settings_t));
- vf_settings[i].name = strdup(str);
- vf_settings[i].attribs = NULL;
- vf_settings[i + 1].name = NULL;
- }
- }
- else
- {
- vf_settings = malloc(2 * sizeof(m_obj_settings_t));
- vf_settings[0].name = strdup(str);
- vf_settings[0].attribs = NULL;
- vf_settings[1].name = NULL;
- }
-}
-
-static void remove_vf(char * str)
-{
- int n = 0;
- if (!vf_settings ) return;
-
- mp_msg(MSGT_GPLAYER,MSGL_STATUS, MSGTR_RemovingVideoFilter, str);
-
- while (vf_settings[n++].name);
- n--;
- if ( n > -1 )
- {
- int i = 0, m = -1;
- while (vf_settings[i].name)
- if (!strcmp(vf_settings[i++].name, str))
- {
- m = i - 1;
- break;
- }
- i--;
- if (m > -1)
- {
- if (n == 1)
- {
- free(vf_settings[0].name);
- free(vf_settings[0].attribs);
- free(vf_settings);
- vf_settings=NULL;
- }
- else
- {
- free(vf_settings[i].name);
- free(vf_settings[i].attribs);
- memcpy(&vf_settings[i], &vf_settings[i + 1], (n - i) * sizeof(m_obj_settings_t));
- }
- }
- }
-}
-
/* this function gets called by mplayer to update the gui */
int guiGetEvent(int type, char *arg)
{
More information about the MPlayer-cvslog
mailing list