Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f728cfb99 | ||
|
|
cdf4b7d2ee | ||
|
|
e978511d63 | ||
|
|
abe47a4840 | ||
|
|
c6db8f6a8b | ||
|
|
b27f65a758 |
No files matched your search
+5
-5
@@ -2384,13 +2384,13 @@ int reinit_video_chain(struct MPContext *mpctx)
|
||||
&(bool){false});
|
||||
}
|
||||
mpctx->initialized_flags |= INITIALIZED_VO;
|
||||
|
||||
// dynamic allocation only to make stheader.h lighter
|
||||
talloc_free(sh_video->hwdec_info);
|
||||
sh_video->hwdec_info = talloc_zero(sh_video, struct mp_hwdec_info);
|
||||
vo_control(mpctx->video_out, VOCTRL_GET_HWDEC_INFO, sh_video->hwdec_info);
|
||||
}
|
||||
|
||||
// dynamic allocation only to make stheader.h lighter
|
||||
talloc_free(sh_video->hwdec_info);
|
||||
sh_video->hwdec_info = talloc_zero(sh_video, struct mp_hwdec_info);
|
||||
vo_control(mpctx->video_out, VOCTRL_GET_HWDEC_INFO, sh_video->hwdec_info);
|
||||
|
||||
vo_update_window_title(mpctx);
|
||||
|
||||
if (stream_control(mpctx->sh_video->gsh->demuxer->stream,
|
||||
|
||||
+25
-4
@@ -2,20 +2,41 @@
|
||||
|
||||
export LC_ALL=C
|
||||
|
||||
test "$1" && extra="-$1"
|
||||
for ac_option do
|
||||
case "$ac_option" in
|
||||
--extra=*)
|
||||
extra="-$option"
|
||||
;;
|
||||
--print)
|
||||
print=yes
|
||||
;;
|
||||
*)
|
||||
echo "Unknown parameter: $option" >&2
|
||||
exit 1
|
||||
;;
|
||||
|
||||
esac
|
||||
done
|
||||
|
||||
# Extract revision number from file used by daily tarball snapshots
|
||||
# or from "git describe" output
|
||||
git_revision=$(cat snapshot_version 2> /dev/null)
|
||||
test $git_revision || test ! -e .git || git_revision=`git rev-parse --short HEAD`
|
||||
test $git_revision || test ! -e .git || git_revision=`git describe --match "v[0-9]*" --always --tags --long`
|
||||
git_revision=$(expr "$git_revision" : v*'\(.*\)')
|
||||
test $git_revision || git_revision=UNKNOWN
|
||||
|
||||
# releases extract the version number from the VERSION file
|
||||
version=$(cat VERSION 2> /dev/null)
|
||||
test $version || version=git-$git_revision
|
||||
test $version || version=$git_revision
|
||||
|
||||
NEW_REVISION="#define VERSION \"${version}${extra}\""
|
||||
VERSION="${version}${extra}"
|
||||
|
||||
if test "$print" = yes ; then
|
||||
echo "$VERSION"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
NEW_REVISION="#define VERSION \"${VERSION}\""
|
||||
OLD_REVISION=$(head -n 1 version.h 2> /dev/null)
|
||||
BUILDDATE="#define BUILDDATE \"$(date)\""
|
||||
|
||||
|
||||
+1
-1
@@ -289,8 +289,8 @@ void vo_destroy(struct vo *vo)
|
||||
{
|
||||
if (vo->registered_fd != -1)
|
||||
mp_input_rm_key_fd(vo->input_ctx, vo->registered_fd);
|
||||
mp_image_unrefp(&vo->waiting_mpi);
|
||||
vo->driver->uninit(vo);
|
||||
talloc_free(vo->waiting_mpi);
|
||||
talloc_free(vo);
|
||||
}
|
||||
|
||||
|
||||
+11
-1
@@ -74,6 +74,7 @@
|
||||
#define vo_wm_STAYS_ON_TOP 4
|
||||
#define vo_wm_ABOVE 8
|
||||
#define vo_wm_BELOW 16
|
||||
#define vo_wm_MWM 32
|
||||
#define vo_wm_NETWM (vo_wm_FULLSCREEN | vo_wm_STAYS_ON_TOP | vo_wm_ABOVE | \
|
||||
vo_wm_BELOW)
|
||||
|
||||
@@ -252,6 +253,8 @@ void fstype_help(void)
|
||||
"use _NETWM_STATE_FULLSCREEN hint if available");
|
||||
mp_msg(MSGT_VO, MSGL_INFO, " %-15s %s\n", "stays_on_top",
|
||||
"use _NETWM_STATE_STAYS_ON_TOP hint if available");
|
||||
mp_msg(MSGT_VO, MSGL_INFO, " %-15s %s\n", "mwm_hack",
|
||||
"enable MWM hack");
|
||||
mp_msg(MSGT_VO, MSGL_INFO,
|
||||
"You can also negate the settings with simply putting '-' in the beginning");
|
||||
mp_msg(MSGT_VO, MSGL_INFO, "\n");
|
||||
@@ -271,6 +274,8 @@ static void fstype_dump(int fstype)
|
||||
mp_msg(MSGT_VO, MSGL_V, " ABOVE");
|
||||
if (fstype & vo_wm_BELOW)
|
||||
mp_msg(MSGT_VO, MSGL_V, " BELOW");
|
||||
if (fstype & vo_wm_MWM)
|
||||
mp_msg(MSGT_VO, MSGL_V, " mwm_hack");
|
||||
mp_msg(MSGT_VO, MSGL_V, " X atoms\n");
|
||||
} else {
|
||||
mp_msg(MSGT_VO, MSGL_V,
|
||||
@@ -1235,6 +1240,11 @@ static int vo_x11_get_fs_type(struct vo *vo)
|
||||
type &= ~vo_wm_NETWM;
|
||||
else
|
||||
type |= vo_wm_NETWM;
|
||||
} else if (!strcmp(arg, "mwm_hack")) {
|
||||
if (neg)
|
||||
type &= ~vo_wm_MWM;
|
||||
else
|
||||
type |= vo_wm_MWM;
|
||||
} else if (!strcmp(arg, "none"))
|
||||
type = 0; // clear; keep parsing
|
||||
}
|
||||
@@ -1336,7 +1346,7 @@ static void vo_x11_fullscreen(struct vo *vo)
|
||||
else
|
||||
x11->old_gravity = x11->vo_hint.win_gravity;
|
||||
}
|
||||
if (x11->wm_type == 0 && !(vo->opts->fsmode & 16)) {
|
||||
if (x11->fs_type & vo_wm_MWM) {
|
||||
XUnmapWindow(x11->display, x11->window); // required for MWM
|
||||
XWithdrawWindow(x11->display, x11->window, x11->screen);
|
||||
x11->fs_flip = 1;
|
||||
|
||||
Reference in new issue
Block a user