comparison gui/ui/render.c @ 33615:1f9a31d4f114

Replace all playback integer constants by their symbolic constants.
author ib
date Wed, 22 Jun 2011 12:53:30 +0000
parents 520fb0f7544c
children 4221981ad74c
comparison
equal deleted inserted replaced
33614:79743a5cf4f0 33615:1f9a31d4f114
228 snprintf(tmp, sizeof(tmp), "%s", guiInfo.sh_video ? ((sh_video_t *)guiInfo.sh_video)->codec->name : ""); 228 snprintf(tmp, sizeof(tmp), "%s", guiInfo.sh_video ? ((sh_video_t *)guiInfo.sh_video)->codec->name : "");
229 av_strlcat(trbuf, tmp, sizeof(trbuf)); 229 av_strlcat(trbuf, tmp, sizeof(trbuf));
230 break; 230 break;
231 231
232 case 's': 232 case 's':
233 if (guiInfo.Playing == 0) 233 if (guiInfo.Playing == GUI_STOP)
234 av_strlcat(trbuf, "s", sizeof(trbuf)); 234 av_strlcat(trbuf, "s", sizeof(trbuf));
235 break; 235 break;
236 236
237 case 'l': 237 case 'l':
238 if (guiInfo.Playing == 1) 238 if (guiInfo.Playing == GUI_PLAY)
239 av_strlcat(trbuf, "p", sizeof(trbuf)); 239 av_strlcat(trbuf, "p", sizeof(trbuf));
240 break; 240 break;
241 241
242 case 'e': 242 case 'e':
243 if (guiInfo.Playing == 2) 243 if (guiInfo.Playing == GUI_PAUSE)
244 av_strlcat(trbuf, "e", sizeof(trbuf)); 244 av_strlcat(trbuf, "e", sizeof(trbuf));
245 break; 245 break;
246 246
247 case 'a': 247 case 'a':
248 248