0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00
mpv/stream
reimar fe6c4fcae2 cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr)
Replace malloc+memset by calloc

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32181 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32182 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32183 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace some sizeof(type) by sizeof(*pointer)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32184 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32186 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32187 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32188 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace sizoef(type) by sizeof(*ptrvar).
Besides being consistent with FFmpeg style,
this reduces the size of a patch to rename these
types to not conflict with the windows.h definitions.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32189 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32191 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32192 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace sizeof(type) by sizeof(*ptrvar)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32193 b3059339-0415-0410-9bf9-f77b7e298cf2

Remove a useless cast.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32194 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace sizeof(type)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32195 b3059339-0415-0410-9bf9-f77b7e298cf2

Remove a useless cast.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32196 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace several sizeof(WAVEFORMATEX)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32197 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace one more instance of sizeof(WAVEFORMATEX); fix compilation.
patch by Clément Bœsch, ubitux gmail com

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32199 b3059339-0415-0410-9bf9-f77b7e298cf2

Avoid some pointless uses of sizeof() and one related cast.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32200 b3059339-0415-0410-9bf9-f77b7e298cf2

Merge one malloc() + memset() invocation into calloc().

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32202 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32203 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace sizeof(WAVEFORMATEX) occurrences.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32205 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32206 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace sizeof(BITMAPINFOHEADER)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32207 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:16:46 +02:00
..
freesdp Remove unused functions. 2010-02-27 23:14:44 +00:00
librtsp stream: Use MSG_NOSIGNAL flag if available for send(). 2010-11-02 04:11:43 +02:00
realrtsp Merge svn changes up to r30475 2010-03-09 19:18:43 +02:00
ai_alsa1x.c spelling fixes 2010-11-02 04:15:03 +02:00
ai_alsa.c spelling fixes 2010-11-02 04:15:03 +02:00
ai_oss.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
asf_mmst_streaming.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
asf_mmst_streaming.h Add header for asf_mmst_streaming_start() instead of forward declaring it. 2010-02-21 23:26:16 +00:00
asf_streaming.c printf format fixes ("%d" -> "%zd") 2010-11-02 04:15:48 +02:00
audio_in.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
audio_in.h Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
cache2.c cache: Remove unused cache_stats function 2010-11-02 04:16:45 +02:00
cache2.h cache: Move cache_fill_status extern declaration to cache2.h 2010-11-02 04:16:45 +02:00
cdd.h stream_cddb: move structs to the file they're used in 2010-11-02 04:11:07 +02:00
cdinfo.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
cookies.c Do not print the "Loading cookie file" message twice. 2010-04-05 19:35:35 +00:00
cookies.h Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
dvb_tune.c Drop support for old-style DVB code. 2010-03-02 19:57:17 +00:00
dvb_tune.h Add header for exported DVB-related functions. 2010-02-21 21:00:08 +00:00
dvbin.h stream/dvbin.h: Use angular brackets for system #includes. 2010-11-02 04:11:07 +02:00
frequencies.c Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
frequencies.h Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
http.c stream/http.c: Move mime_type_table extern declaration to network.h 2010-11-02 04:16:45 +02:00
http.h Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
network.c Factorize MPlayer/MEncoder version string handling. 2010-11-02 04:11:43 +02:00
network.h stream/http.c: Move mime_type_table extern declaration to network.h 2010-11-02 04:16:45 +02:00
open.c Simplify code: make open_stream() accept NULL file_format argument 2010-11-02 04:15:48 +02:00
pnm.c spelling fixes 2010-11-02 04:15:03 +02:00
pnm.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
pvr.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
rtp.c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
rtp.h stream/rtp.h appears not to originate from dvbstream. 2010-01-30 21:38:05 +00:00
stream_bluray.c stream_bluray: implement slave mode compatible controls 2010-11-02 04:14:20 +02:00
stream_cdda.c stream_cdda: change printf format for cdda_tracks to %d 2010-11-02 04:11:07 +02:00
stream_cddb.c Factorize MPlayer/MEncoder version string handling. 2010-11-02 04:11:43 +02:00
stream_cue.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
stream_dvb.c stream_dvb.c: avoid compiler warning by adding initialization 2010-11-02 04:14:46 +02:00
stream_dvd_common.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
stream_dvd_common.h Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
stream_dvd.c stream_dvd[nav]: Add const qualifiers to string arguments 2010-11-02 04:15:48 +02:00
stream_dvd.h stream_dvd[nav]: Add const qualifiers to string arguments 2010-11-02 04:15:48 +02:00
stream_dvdnav.c stream_dvd[nav]: Add const qualifiers to string arguments 2010-11-02 04:15:48 +02:00
stream_dvdnav.h stream_dvd[nav]: Add const qualifiers to string arguments 2010-11-02 04:15:48 +02:00
stream_ffmpeg.c Add support for STREAM_CTRL_SEEK_TO_TIME in ffmpeg streams 2010-05-25 23:07:28 +00:00
stream_file.c stream_file: Simplify and document MinGW stdin hack 2010-11-02 04:15:48 +02:00
stream_ftp.c stream: Use MSG_NOSIGNAL flag if available for send(). 2010-11-02 04:11:43 +02:00
stream_live555.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
stream_mf.c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
stream_nemesi.c cosmetics: Remove pointless empty lines at EOF. 2010-02-20 21:02:49 +00:00
stream_netstream.c Drop pointless _st suffix from 'struct stream'. 2010-05-27 20:38:25 +00:00
stream_netstream.h stream: Use MSG_NOSIGNAL flag if available for send(). 2010-11-02 04:11:43 +02:00
stream_null.c Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
stream_pvr.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
stream_radio.c stream_radio.c: fix corrupt line from e3061749 2010-06-02 00:27:01 +03:00
stream_radio.h Drop pointless _st suffix from 'struct stream'. 2010-05-27 20:38:25 +00:00
stream_rtp.c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
stream_rtsp.c Drop pointless _st suffix from 'struct stream'. 2010-05-27 20:38:25 +00:00
stream_smb.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
stream_tv.c Fix warning "missing braces around initializer". 2010-02-27 23:23:34 +00:00
stream_udp.c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
stream_vcd.c Merge svn changes up to r31033 2010-04-26 18:25:34 +03:00
stream_vstream.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
stream.c stream: make stream_read_line() terminate line on EOF 2010-11-02 04:15:49 +02:00
stream.h cache: add sanity-check for sector size 2010-11-02 04:15:34 +02:00
tcp.c stream/tcp.c: Prefer the use of inet_ntop over inet_ntoa 2010-11-02 04:11:07 +02:00
tcp.h
tv.c cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr) 2010-11-02 04:16:46 +02:00
tv.h stream/tv: move free_handle() from header to tv.c 2010-11-02 04:16:46 +02:00
tvi_bsdbt848.c tv.h: Change function pointer types to proper declarations 2010-11-02 04:07:42 +02:00
tvi_def.h cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr) 2010-11-02 04:16:46 +02:00
tvi_dshow.c stream/tv: move free_handle() from header to tv.c 2010-11-02 04:16:46 +02:00
tvi_dshow.h Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
tvi_dummy.c tv.h: Change function pointer types to proper declarations 2010-11-02 04:07:42 +02:00
tvi_v4l2.c stream/tv: move free_handle() from header to tv.c 2010-11-02 04:16:46 +02:00
tvi_v4l.c stream/tv: move free_handle() from header to tv.c 2010-11-02 04:16:46 +02:00
udp.c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
udp.h
url.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
url.h Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
vcd_read_darwin.h Try to fix VCD compilation on non-Linux systems. 2010-04-05 19:31:55 +00:00
vcd_read_fbsd.h Merge svn changes up to r31033 2010-04-26 18:25:34 +03:00
vcd_read_os2.h Try to fix VCD compilation on non-Linux systems. 2010-04-05 19:31:55 +00:00
vcd_read_win32.h Try to fix VCD compilation on non-Linux systems. 2010-04-05 19:31:55 +00:00
vcd_read.h Merge svn changes up to r31033 2010-04-26 18:25:34 +03:00