Mercurial > mplayer.hg
comparison gui/ui/actions.c @ 35379:2b49f4c8c47f
Allow setting guiInfo.Filename to NULL.
It's totally valid to do so.
author | ib |
---|---|
date | Sun, 25 Nov 2012 14:17:23 +0000 |
parents | 8249c2131cd3 |
children | e9f57004e925 |
comparison
equal
deleted
inserted
replaced
35378:e900dc6b8d66 | 35379:2b49f4c8c47f |
---|---|
219 wsSetLayer(wsDisplay, guiApp.menuWindow.WindowID, guiApp.videoWindow.isFullScreen); | 219 wsSetLayer(wsDisplay, guiApp.menuWindow.WindowID, guiApp.videoWindow.isFullScreen); |
220 } | 220 } |
221 | 221 |
222 void uiSetFileName(char *dir, char *name, int type) | 222 void uiSetFileName(char *dir, char *name, int type) |
223 { | 223 { |
224 if (!name) | |
225 return; | |
226 | |
227 if (!dir) | 224 if (!dir) |
228 setdup(&guiInfo.Filename, name); | 225 setdup(&guiInfo.Filename, name); |
229 else | 226 else |
230 setddup(&guiInfo.Filename, dir, name); | 227 setddup(&guiInfo.Filename, dir, name); |
231 | 228 |