|
Re: Small xine-ui inconsistency with loading subtitles: msg#00078video.xine.devel
Hi again, Boszormenyi Zoltan wrote: Hi, the previous *almost* fixed the second problem. This one tries to fix it, too. The way it currently works is this: 1. Select a movie file, it remembers the directory (gGui->curdir) 2. Select a subtitle file, it starts in the same directory as the previous movie file. 2a.Selecting a subtitle remembers the subtitle file but does not update gGui->curdir, selecting a subtitle next time starts in the same directory as the previous subtitle. 2b.Cancelling the selection forgets the (maybe changed) subdir, selecting a subtitle next time starts in the same directory as the previous movie file. 3. Select a new movie file, and it forgets about the previous subtitle, go to #2. Will someone please review and (maybe) apply it into the current CVS? -- Best regards, Zoltán Böszörményi --------------------- What did Hussein say about his knife? One in Bush worth two in the hand. --- xine-ui/src/xitk/actions.c.old 2003-08-06 12:04:04.000000000 +0200 +++ xine-ui/src/xitk/actions.c 2003-08-06 13:03:15.000000000 +0200 @@ -1744,7 +1744,9 @@ static void subselector_callback(filebrowser_t *fb) { char *file; +#if 0 sprintf(gGui->curdir, "%s", (filebrowser_get_current_dir(fb))); +#endif if((file = filebrowser_get_full_filename(fb)) != NULL) { if(file) { @@ -1787,13 +1789,24 @@ mmk = mediamark_get_current_mmk(); if(mmk) { + char *dir, *file = NULL; cbb[0].label = _("Select"); cbb[0].callback = subselector_callback; cbb[0].need_a_file = 1; +#if 0 cbb[1].callback = fileselector_cancel_callback; +#else + cbb[1].callback = NULL; +#endif cbb[1].need_a_file = 0; - (void *) create_filebrowser(_("Pick a subtitle file"), mmk->sub, &cbb[0], NULL, &cbb[1]); + + xine_strdupa(dir, (mmk->sub ? mmk->sub : mmk->mrl)); + file = strrchr(dir, '/'); + if (file && (strlen(file) > 1)) + *file = '\0'; + + (void *) create_filebrowser(_("Pick a subtitle file"), dir, &cbb[0], NULL, &cbb[1]); } } } |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: planar post plugins: 00078, Michael Roitzsch |
|---|---|
| Next by Date: | Re: planar post plugins: 00078, Mike Melanson |
| Previous by Thread: | Re: Small xine-ui inconsistency with loading subtitlesi: 00078, Boszormenyi Zoltan |
| Next by Thread: | Playing MPEG with 1_rc0a-0 badly broken on PPC (all pink video): 00078, Bill Fink |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |