Mercurial > mplayer.hg
comparison stream/tvi_def.h @ 26756:c43ce7268677
cosmetics: Remove useless parentheses from return statements.
author | diego |
---|---|
date | Fri, 16 May 2008 08:43:15 +0000 |
parents | 7ee4ae1648e6 |
children | 0f1b5b68af32 |
comparison
equal
deleted
inserted
replaced
26755:46f0b4d34fa1 | 26756:c43ce7268677 |
---|---|
32 static tvi_handle_t *new_handle(void) | 32 static tvi_handle_t *new_handle(void) |
33 { | 33 { |
34 tvi_handle_t *h = (tvi_handle_t *)malloc(sizeof(tvi_handle_t)); | 34 tvi_handle_t *h = (tvi_handle_t *)malloc(sizeof(tvi_handle_t)); |
35 | 35 |
36 if (!h) | 36 if (!h) |
37 return(NULL); | 37 return NULL; |
38 h->priv = (priv_t *)malloc(sizeof(priv_t)); | 38 h->priv = (priv_t *)malloc(sizeof(priv_t)); |
39 if (!h->priv) | 39 if (!h->priv) |
40 { | 40 { |
41 free(h); | 41 free(h); |
42 return(NULL); | 42 return NULL; |
43 } | 43 } |
44 memset(h->priv, 0, sizeof(priv_t)); | 44 memset(h->priv, 0, sizeof(priv_t)); |
45 h->functions = &functions; | 45 h->functions = &functions; |
46 h->seq = 0; | 46 h->seq = 0; |
47 h->chanlist = -1; | 47 h->chanlist = -1; |
48 h->chanlist_s = NULL; | 48 h->chanlist_s = NULL; |
49 h->norm = -1; | 49 h->norm = -1; |
50 h->channel = -1; | 50 h->channel = -1; |
51 h->scan = NULL; | 51 h->scan = NULL; |
52 return(h); | 52 return h; |
53 } | 53 } |
54 | 54 |
55 static void free_handle(tvi_handle_t *h) | 55 static void free_handle(tvi_handle_t *h) |
56 { | 56 { |
57 if (h) { | 57 if (h) { |