diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2002-06-17 07:47:50 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2002-06-17 07:47:50 +0000 |
commit | b1808fc42743bcb08bbbddc4210424bcd2efe925 (patch) | |
tree | 93ab75b031bc152800fc07be65ca100ec1f309c6 /src/xine-engine/xine.c | |
parent | 5575d94bedb7472aa4a9817946a65675c537c244 (diff) | |
download | xine-lib-b1808fc42743bcb08bbbddc4210424bcd2efe925.tar.gz xine-lib-b1808fc42743bcb08bbbddc4210424bcd2efe925.tar.bz2 |
Add Siggi's idea about option config change on the fly. New "mrl style"
opt:key=value. I hope i haven't introduced races here.
CVS patchset: 2085
CVS date: 2002/06/17 07:47:50
Diffstat (limited to 'src/xine-engine/xine.c')
-rw-r--r-- | src/xine-engine/xine.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c index d8a7f36c2..c292202f4 100644 --- a/src/xine-engine/xine.c +++ b/src/xine-engine/xine.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine.c,v 1.140 2002/06/12 12:22:38 f1rmb Exp $ + * $Id: xine.c,v 1.141 2002/06/17 07:47:50 f1rmb Exp $ * * top-level xine functions * @@ -384,6 +384,19 @@ int xine_play_internal (xine_t *this, char *mrl, this->status = XINE_STOP; } + /* Is it an 'opt:' mrlstyle ? */ + if(config_file_change_opt(this->config, mrl)) { + xine_event_t event; + + this->status = XINE_STOP; + + event.type = XINE_EVENT_PLAYBACK_FINISHED; + pthread_mutex_unlock (&this->xine_lock); + xine_send_event (this, &event); + pthread_mutex_lock (&this->xine_lock); + return 1; + } + if (this->status == XINE_STOP ) { /* * find input plugin |