+ const char *ext = strrchr(filename, '.');
+ if (!ext)
+ ext = filename;
+
+ int is_mpeg_ps = !(strcasecmp(ext, ".mpeg") && strcasecmp(ext, ".mpg") && strcasecmp(ext, ".vob") && strcasecmp(ext, ".bin"));
+ int is_mpeg_ts = !strcasecmp(ext, ".ts");
+ int is_mp3 = !strcasecmp(ext, ".mp3"); /* force mp3 instead of decodebin */
+ int is_video = is_mpeg_ps || is_mpeg_ts;
+ int is_streaming = !strncmp(filename, "http://", 7);
+
+ eDebug("filename: %s, is_mpeg_ps: %d, is_mpeg_ts: %d, is_video: %d, is_streaming: %d, is_mp3: %d", filename, is_mpeg_ps, is_mpeg_ts, is_video, is_streaming, is_mp3);