mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 23:32:26 +00:00
removed obosolete Terminate_Display_Process. using vo_x11_uninit. support UYVY format
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4442 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
947903ce8d
commit
c97dccacbd
@ -220,11 +220,12 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width,
|
|||||||
case IMGFMT_YV12:
|
case IMGFMT_YV12:
|
||||||
image_depth = 12;
|
image_depth = 12;
|
||||||
break;
|
break;
|
||||||
|
case IMGFMT_UYVY:
|
||||||
case IMGFMT_YUY2:
|
case IMGFMT_YUY2:
|
||||||
image_depth = 16;
|
image_depth = 16;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
mp_msg(MSGT_VO, MSGL_FATAL, "Unknown image format: %s",
|
mp_msg(MSGT_VO, MSGL_FATAL, "Unknown image format: %s\n",
|
||||||
vo_format_name(format));
|
vo_format_name(format));
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
@ -438,30 +439,9 @@ static uint32_t query_format(uint32_t format)
|
|||||||
static void uninit(void)
|
static void uninit(void)
|
||||||
{
|
{
|
||||||
vidix_term();
|
vidix_term();
|
||||||
|
|
||||||
saver_on(mDisplay); /* screen saver back on */
|
saver_on(mDisplay); /* screen saver back on */
|
||||||
#ifdef HAVE_NEW_GUI
|
vo_x11_uninit(mDisplay, mWindow);
|
||||||
/* destroy window only if it's not controlled by GUI */
|
|
||||||
if (vo_window == None)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (!(WinID > 0)) /* don't destory window if -wid specified */
|
|
||||||
{
|
|
||||||
XDestroyWindow(mDisplay, mWindow);
|
|
||||||
XCloseDisplay(mDisplay);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* i think this is obsoleted.... -- alex */
|
|
||||||
static void Terminate_Display_Process(void)
|
|
||||||
{
|
|
||||||
getchar(); /* wait for enter to remove window */
|
|
||||||
vidix_term();
|
|
||||||
XDestroyWindow(mDisplay, mWindow);
|
|
||||||
XCloseDisplay(mDisplay);
|
|
||||||
X_already_started = 0;
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint32_t preinit(const char *arg)
|
static uint32_t preinit(const char *arg)
|
||||||
|
Loading…
Reference in New Issue
Block a user