[MPlayer-cvslog] r36672 - trunk/libmpdemux/demux_demuxers.c
reimar
subversion at mplayerhq.hu
Mon Jan 20 23:08:41 CET 2014
Author: reimar
Date: Mon Jan 20 23:08:41 2014
New Revision: 36672
Log:
demux_demuxers: Simplify, merge declaration and initialization.
Modified:
trunk/libmpdemux/demux_demuxers.c
Modified: trunk/libmpdemux/demux_demuxers.c
==============================================================================
--- trunk/libmpdemux/demux_demuxers.c Mon Jan 20 23:08:40 2014 (r36671)
+++ trunk/libmpdemux/demux_demuxers.c Mon Jan 20 23:08:41 2014 (r36672)
@@ -37,9 +37,7 @@ extern const demuxer_desc_t demuxer_desc
demuxer_t* new_demuxers_demuxer(demuxer_t* vd, demuxer_t* ad, demuxer_t* sd) {
// Video is the most important :-)
demuxer_t* ret = alloc_demuxer(vd->stream, DEMUXER_TYPE_DEMUXERS, vd->filename);
- dd_priv_t* priv;
-
- priv = malloc(sizeof(dd_priv_t));
+ dd_priv_t* priv = malloc(sizeof(*priv));
priv->vd = vd;
priv->ad = ad;
priv->sd = sd;
More information about the MPlayer-cvslog
mailing list