Skip to content

Commit

Permalink
Merge pull request #42 from ua0lnj/master
Browse files Browse the repository at this point in the history
Do not set x11 env with drm output. Version 1.7.2.
  • Loading branch information
ua0lnj authored Jul 11, 2024
2 parents fc8c70b + afa1d2a commit 89eb133
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ vector<string> cMpvPluginConfig::ExplodeString(string Input)
int cMpvPluginConfig::ProcessArgs(int argc, char *const argv[])
{
char *s;
if ((s = getenv("DISPLAY")))
{
X11Display = s;
}
else
setenv("DISPLAY", X11Display.c_str(), 1);

for (;;)
{
Expand Down Expand Up @@ -134,6 +128,13 @@ int cMpvPluginConfig::ProcessArgs(int argc, char *const argv[])
esyslog("[mpv]: unhandled argument '%s'\n", argv[optind++]);
}

if ((s = getenv("DISPLAY")))
{
X11Display = s;
}
else if (strcmp(GpuCtx.c_str(),"drm") && strcmp(VideoOut.c_str(),"drm"))
setenv("DISPLAY", X11Display.c_str(), 1);

//convert the playlist extension string to a vector
PlaylistExtensions = ExplodeString(PlayListExtString);

Expand Down
2 changes: 1 addition & 1 deletion mpv.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "menu_options.h"
#include "mpv_service.h"

static const char *VERSION = "1.7.1"
static const char *VERSION = "1.7.2"
#ifdef GIT_REV
"-GIT" GIT_REV
#endif
Expand Down

0 comments on commit 89eb133

Please sign in to comment.