Mercurial > audlegacy-plugins
annotate src/mplayer/common.c @ 196:81592119ee73 trunk
[svn] Relabel MPlayer plugin in plugins list and fix window title; we're not xmms, kthx.
author | kiyoshi |
---|---|
date | Fri, 03 Nov 2006 03:34:45 -0800 |
parents | 52c85b72354b |
children | fd4cba2fe99b |
rev | line source |
---|---|
137 | 1 #include <audacious/configdb.h> |
135
33d24bd94ccc
[svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff
changeset
|
2 #include "xmmsmplayer.h" |
33d24bd94ccc
[svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff
changeset
|
3 |
33d24bd94ccc
[svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff
changeset
|
4 struct mplayer_cfg *mplayer_read_cfg(){ |
137 | 5 ConfigDb *cfg; |
135
33d24bd94ccc
[svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff
changeset
|
6 struct mplayer_cfg *new_cfg; |
33d24bd94ccc
[svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff
changeset
|
7 new_cfg=(struct mplayer_cfg *)malloc(sizeof(struct mplayer_cfg)); |
33d24bd94ccc
[svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff
changeset
|
8 memset(new_cfg,0,sizeof(struct mplayer_cfg)); |
137 | 9 cfg = bmp_cfg_db_open(); |
10 bmp_cfg_db_get_int(cfg,"xmms-mplayer","vo",&(new_cfg->vo)); | |
11 bmp_cfg_db_get_int(cfg,"xmms-mplayer","ao",&(new_cfg->ao)); | |
12 bmp_cfg_db_get_bool(cfg,"xmms-mplayer","zoom",&(new_cfg->zoom)); | |
13 bmp_cfg_db_get_bool(cfg,"xmms-mplayer","framedrop",&(new_cfg->framedrop)); | |
14 bmp_cfg_db_get_bool(cfg,"xmms-mplayer","idx",&(new_cfg->idx)); | |
15 bmp_cfg_db_get_bool(cfg,"xmms-mplayer","onewin",&(new_cfg->onewin)); | |
16 bmp_cfg_db_get_bool(cfg,"xmms-mplayer","xmmsaudio",&(new_cfg->xmmsaudio)); | |
17 bmp_cfg_db_get_string(cfg,"xmms-mplayer","extra",&(new_cfg->extra)); | |
18 bmp_cfg_db_close(cfg); | |
135
33d24bd94ccc
[svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff
changeset
|
19 return new_cfg; |
33d24bd94ccc
[svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff
changeset
|
20 } |