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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
137
52c85b72354b [svn] - convert to use configdb system
nenolod
parents: 135
diff changeset
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
52c85b72354b [svn] - convert to use configdb system
nenolod
parents: 135
diff changeset
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
52c85b72354b [svn] - convert to use configdb system
nenolod
parents: 135
diff changeset
9 cfg = bmp_cfg_db_open();
52c85b72354b [svn] - convert to use configdb system
nenolod
parents: 135
diff changeset
10 bmp_cfg_db_get_int(cfg,"xmms-mplayer","vo",&(new_cfg->vo));
52c85b72354b [svn] - convert to use configdb system
nenolod
parents: 135
diff changeset
11 bmp_cfg_db_get_int(cfg,"xmms-mplayer","ao",&(new_cfg->ao));
52c85b72354b [svn] - convert to use configdb system
nenolod
parents: 135
diff changeset
12 bmp_cfg_db_get_bool(cfg,"xmms-mplayer","zoom",&(new_cfg->zoom));
52c85b72354b [svn] - convert to use configdb system
nenolod
parents: 135
diff changeset
13 bmp_cfg_db_get_bool(cfg,"xmms-mplayer","framedrop",&(new_cfg->framedrop));
52c85b72354b [svn] - convert to use configdb system
nenolod
parents: 135
diff changeset
14 bmp_cfg_db_get_bool(cfg,"xmms-mplayer","idx",&(new_cfg->idx));
52c85b72354b [svn] - convert to use configdb system
nenolod
parents: 135
diff changeset
15 bmp_cfg_db_get_bool(cfg,"xmms-mplayer","onewin",&(new_cfg->onewin));
52c85b72354b [svn] - convert to use configdb system
nenolod
parents: 135
diff changeset
16 bmp_cfg_db_get_bool(cfg,"xmms-mplayer","xmmsaudio",&(new_cfg->xmmsaudio));
52c85b72354b [svn] - convert to use configdb system
nenolod
parents: 135
diff changeset
17 bmp_cfg_db_get_string(cfg,"xmms-mplayer","extra",&(new_cfg->extra));
52c85b72354b [svn] - convert to use configdb system
nenolod
parents: 135
diff changeset
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 }