Mercurial > mplayer.hg
diff gui/interface.c @ 34065:8a7056729022
Change guiInfo.Filename by using uiSetFileName() only.
The two nfree() may be omitted, because they are performed
in uiSetFileName().
| author | ib |
|---|---|
| date | Thu, 29 Sep 2011 13:35:31 +0000 |
| parents | 54becc464788 |
| children | 1b60a54bbfb8 |
line wrap: on
line diff
--- a/gui/interface.c Thu Sep 29 13:26:32 2011 +0000 +++ b/gui/interface.c Thu Sep 29 13:35:31 2011 +0000 @@ -406,7 +406,7 @@ char tmp[512]; sprintf(tmp, "vcd://%d", guiInfo.Track); - setdup(&guiInfo.Filename, tmp); + uiSetFileName(NULL, tmp, STREAMTYPE_VCD); } break; #endif @@ -417,7 +417,7 @@ char tmp[512]; sprintf(tmp, "dvd://%d", guiInfo.Track); - setdup(&guiInfo.Filename, tmp); + uiSetFileName(NULL, tmp, STREAMTYPE_DVD); } dvd_chapter = guiInfo.Chapter; @@ -768,11 +768,8 @@ if (guiInfo.Playing && (next = listSet(gtkGetNextPlItem, NULL)) && (plLastPlayed != next)) { plLastPlayed = next; - setddup(&guiInfo.Filename, next->path, next->name); - guiInfo.StreamType = STREAMTYPE_FILE; + uiSetFileName(next->path, next->name, STREAMTYPE_FILE); guiInfo.NewPlay = GUI_FILE_NEW; - nfree(guiInfo.AudioFilename); - nfree(guiInfo.SubtitleFilename); guiInfo.Track++; } else { if (guiInfo.NewPlay == GUI_FILE_NEW)
