[MPlayer-cvslog] r38086 - in trunk/gui: interface.c win32/dialogs.c
ib
subversion at mplayerhq.hu
Fri Apr 13 13:47:58 EEST 2018
Author: ib
Date: Fri Apr 13 13:47:58 2018
New Revision: 38086
Log:
Remove unnecessary code.
MPlayer will take care of the OSD.
Modified:
trunk/gui/interface.c
trunk/gui/win32/dialogs.c
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c Fri Apr 13 13:44:31 2018 (r38085)
+++ trunk/gui/interface.c Fri Apr 13 13:47:58 2018 (r38086)
@@ -1392,27 +1392,6 @@ void mplayerLoadSubtitle(const char *nam
sub_free(subdata);
subdata = NULL;
- vo_sub = NULL;
-
- if (vo_osd_list) {
- int len;
- mp_osd_obj_t *osd;
-
- osd = vo_osd_list;
-
- while (osd) {
- if (osd->type == OSDTYPE_SUBTITLE)
- break;
-
- osd = osd->next;
- }
-
- if (osd && (osd->flags & OSDFLAG_VISIBLE)) {
- len = osd->stride * (osd->bbox.y2 - osd->bbox.y1);
- memset(osd->bitmap_buffer, 0, len);
- memset(osd->alpha_buffer, 0, len);
- }
- }
}
if (name) {
Modified: trunk/gui/win32/dialogs.c
==============================================================================
--- trunk/gui/win32/dialogs.c Fri Apr 13 13:44:31 2018 (r38085)
+++ trunk/gui/win32/dialogs.c Fri Apr 13 13:47:58 2018 (r38086)
@@ -52,23 +52,6 @@ void mplayerLoadSubtitle(const char *nam
mp_msg(MSGT_GPLAYER, MSGL_INFO, MSGTR_GUI_MSG_RemovingSubtitle);
sub_free(subdata);
subdata = NULL;
- vo_sub = NULL;
- if (vo_osd_list)
- {
- int len;
- mp_osd_obj_t *osd = vo_osd_list;
- while (osd)
- {
- if (osd->type == OSDTYPE_SUBTITLE) break;
- osd = osd->next;
- }
- if (osd && osd->flags & OSDFLAG_VISIBLE)
- {
- len = osd->stride * (osd->bbox.y2 - osd->bbox.y1);
- memset(osd->bitmap_buffer, 0, len);
- memset(osd->alpha_buffer, 0, len);
- }
- }
}
if (name)
More information about the MPlayer-cvslog
mailing list