51 Commits
Author SHA1 Message Date
adipose acdfba5576 support .style for srt subs (#2839) 2024-06-13 13:53:25 +02:00
adipose 74858885e5 show audio format in status bar (#2635) 2024-03-05 16:09:04 +01:00
adipose 25077fb5ed convert ansi stylenames to unicode for style tabs (#2586) 2024-02-19 02:08:34 +01:00
lifegpc 398e9a15ca Don't show title in recent file list if title is included in filename. (#1025) 2021-03-25 13:28:39 +01:00
clsid2 bf256c5f07 Fix infinite loop in LastIndexOfCString 2021-01-13 16:05:19 +01:00
lifegpc 2de30dc3e1 Don't show title in recent file list when it is similar to the filename (#837) 2021-01-11 17:44:24 +01:00
lifegpc 6c5a47469f Fix bug when label name is equal to file name in recent file list. (#827) 2021-01-05 13:56:10 +01:00
lifegpc c6e6bf55cc Improve URL Location display in properties clip page (#787) 2020-12-06 17:01:09 +01:00
lifegpc 2a2f63c51f Rewrite Recent Files List (#757) 2020-12-02 16:20:19 +01:00
lifegpc 347de3b3dc Do not display HTTP GET parameters in title ,recent file list and properties page. (#623) (#661) 2020-10-16 10:25:32 +02:00
adipose b95ed1bdf6 fix bug with convenience function to use type (#626) 2020-09-20 13:26:45 +02:00
adipose b2b516ad91 add convenience function to get lcid string (#624) 2020-09-19 23:22:46 +02:00
adipose 8655852cad Support URL and UTF8 decoding of streaming URL titles (#591) 2020-08-26 12:48:47 +02:00
Kacper Michajłow 2c29679745 Fix ambiguous ternary operators. 2017-08-27 23:13:38 +02:00
Kacper Michajłow 2c05b1c7e8 Fix few warnings.
While passing CString object works it is not a good practise. We do that
everywhere, but at least fix those places where compiler throws warning.

Handle POSITION mess, cast to integer type before casting to pointer.
Add __assume to let compiler know that values fits in the INT range.
2016-05-01 23:02:40 +02:00
ioannis 3c1b6f3238 Rewrite subtitles downloading framework
Resolves #146.
2016-01-08 00:11:08 +01:00
Daniel Kamil Kozar 761be69ac7 Add an interface for channel list and change to the web server.
This change adds a JSON interface for obtaining the list of channels
currently available via the DVB interface in MPC-HC, and a simple facility
which allows the client to change the currently played channel.
2014-06-03 22:05:34 +02:00
Underground78 090223611e Use AtlEscapeUrl/AtlUnescapeUrl to do URL encoding/decoding.
This is now available outside of ATL Server. It avoids using our incomplete URL encoding function.
2014-05-01 20:51:28 +02:00
Underground78 f224619436 Web interface: Be more careful when url encoding things.
Some characters weren't url encoded.
2014-04-12 23:56:34 +02:00
XhmikosR 5e591c17c2 Use ZeroMemory instead of {0} for structs. 2013-06-23 16:27:42 +03:00
XhmikosR e24ab62e1c Replace memset with ZeroMemory.
The ZeroMemory macro makes clear what it does compared to `memset(foo, 0, bar)`.
2013-06-23 16:27:42 +03:00
Underground78 2acb3c5749 Use nullptr instead of NULL whenever possible.
Microsoft recommends to avoid using NULL or zero (0) as a null pointer constant since nullptr is less vulnerable to misuse and works better in most situations.

Also fix some cases where NULL was used instead of 0 or FALSE.
2013-05-09 14:57:30 +02:00
v0lt 4d183f06c2 Revert "Shaders: shaders moved from ini and registry to separate folder."
This reverts commit 0e2e3b9458.
2013-03-22 21:01:51 +04:00
v0lt 0e2e3b9458 Shaders: shaders moved from ini and registry to separate folder.
(MPC-BE 2296, 2297, 2309, 2342)
2013-03-22 20:57:26 +04:00
XhmikosR 1d78a3ae91 Revert "Move code of shaders from registry and ini to separate files in folder."
This reverts commit da59b57a76.
2013-03-16 13:32:24 +02:00
v0lt da59b57a76 Move code of shaders from registry and ini to separate files in folder. 2013-03-16 15:27:44 +04:00
Underground78 716331e73d Web server: Escape the user inputs to avoid XSS exploits.
This commit partially fixes ticket #2729.
2012-11-17 23:35:50 +01:00
Underground78 19f3afdfa6 Properly enable memory leak detection.
Use MS define DEBUG_NEW.
2012-11-11 23:24:55 +01:00
v0lt ab18de24e9 small correction to UrlEncode function (thanks to exodus8) 2012-09-30 23:07:25 +04:00
XhmikosR 187f82a855 run astyle 2012-09-30 20:44:24 +03:00
v0lt 26da31e97f WebUI: added support for '#', '%', '+' and other characters in file names (ticket #2267) 2012-09-30 10:58:57 +04:00
xhmikosr 22815f64aa fix the C6328 warnings found with /analyze
'char' passed as parameter '1' when 'unsigned char' is required in call to 'isupper'
'char' passed as parameter '1' when 'unsigned char' is required in call to 'isspace'
2012-08-10 18:00:49 +03:00
xhmikosr 43a55b7aed remove the svn keyword Id 2012-07-25 18:46:20 +03:00
Underground78 1af68a6285 Use the locale to format the file size with correct thousand separator in the properties page and when generating thumbnails.
This commit fixes ticket #2275.


git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@5414 10f7b99b-c216-0410-bff0-8a66a9350fd8
2012-07-08 16:36:31 +00:00
XhmikosR d7ffb08b3e indentation cosmetics
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@5390 10f7b99b-c216-0410-bff0-8a66a9350fd8
2012-07-07 12:56:57 +00:00
XhmikosR 0b9ec9a361 apply the new astyle command; use 4 spaces for indentation and k&r style
Note: if you have any local patches just run astyle.bat

git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@5110 10f7b99b-c216-0410-bff0-8a66a9350fd8
2012-06-13 09:05:30 +00:00
XhmikosR f493e6891d remove commented out code
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@5081 10f7b99b-c216-0410-bff0-8a66a9350fd8
2012-06-10 20:19:13 +00:00
Underground78 3eebb545fe MultiByteToWideChar: the destination size should be given in characters not in bytes (spotted with /analyze). Patch by XhmikosR.
Also ensure that the destination string is properly null terminated.

git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4996 10f7b99b-c216-0410-bff0-8a66a9350fd8
2012-06-03 13:51:40 +00:00
v0lt ad345f4be4 DSUtil: fixed all warnings
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4990 10f7b99b-c216-0410-bff0-8a66a9350fd8
2012-06-03 05:18:15 +00:00
Underground78 ddcfe82895 Cosmetics: make the return statements consistent.
Patch partially by XhmikosR.

git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4978 10f7b99b-c216-0410-bff0-8a66a9350fd8
2012-06-02 11:53:15 +00:00
XhmikosR f829a8f5b1 use a space after if, for, while
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4907 10f7b99b-c216-0410-bff0-8a66a9350fd8
2012-05-27 09:08:33 +00:00
XhmikosR a00f860d83 DSUtil: add missing license headers
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4670 10f7b99b-c216-0410-bff0-8a66a9350fd8
2012-05-10 11:03:09 +00:00
XhmikosR 1cbe4dd0c2 remove unused code
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4663 10f7b99b-c216-0410-bff0-8a66a9350fd8
2012-05-09 20:07:32 +00:00
XhmikosR 6cb2939b67 apply astyle
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4039 10f7b99b-c216-0410-bff0-8a66a9350fd8
2012-02-05 09:27:07 +00:00
Underground78 8caf4b5aaf Fix ~130 C4018 warnings (signed/unsigned mismatch).
Patch partially by XhmikosR.

git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3637 10f7b99b-c216-0410-bff0-8a66a9350fd8
2011-08-10 20:08:23 +00:00
XhmikosR 7359bd509a apply astyle formatting
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2786 10f7b99b-c216-0410-bff0-8a66a9350fd8
2010-12-17 16:42:55 +00:00
XhmikosR b37ef08a64 DSUtil: applied astyle formatting
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2533 10f7b99b-c216-0410-bff0-8a66a9350fd8
2010-09-12 12:45:26 +00:00
XhmikosR efbc9d9043 revert r1783
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1785 10f7b99b-c216-0410-bff0-8a66a9350fd8
2010-04-09 14:12:59 +00:00
tetsuo55 a9b7bf3fb3 astyle formatting cleanup to make the sourcecode more accessible
switch used: astyle --style=ansi --min-conditional-indent=0 --pad=oper --unpad=paren
http://astyle.sourceforge.net/

git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1783 10f7b99b-c216-0410-bff0-8a66a9350fd8
2010-04-08 21:14:58 +00:00
jonasno 3244957f45 Merged VSFilterMod rev20, only 64 bit code enabled for the time being
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1688 10f7b99b-c216-0410-bff0-8a66a9350fd8
2010-02-21 18:50:41 +00:00