diff options
-rw-r--r-- | Gui/mplayer/widgets.c | 4 | ||||
-rw-r--r-- | mplayer.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Gui/mplayer/widgets.c b/Gui/mplayer/widgets.c index 0115a85442..e945761356 100644 --- a/Gui/mplayer/widgets.c +++ b/Gui/mplayer/widgets.c @@ -68,6 +68,10 @@ static void gtkThreadProc( int argc,char * argv[] ) { struct sigaction sa; + #ifdef HAVE_RTC + setuid( getuid() ); // strongly test, please check this. + #endif + gtk_set_locale(); gtk_init( &argc,&argv ); gdk_set_use_xshm( TRUE ); @@ -634,6 +634,7 @@ if(!parse_codec_cfg(get_path("codecs.conf"))){ } else printf("Using Linux's hardware RTC timing (%ldHz)\n", irqp); } + setuid( getuid() ); // strongly test, please check this. if(rtc_fd<0) #endif printf("Using %s timing\n",softsleep?"software":"usleep()"); |