diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-05-04 22:12:55 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-05-06 18:33:16 +0300 |
commit | b68f9fef32971095836ea6bbeb2f12af417120d2 (patch) | |
tree | 46288d0356764318d595a946d22ca31eaf6b0101 /stream/tv.c | |
parent | 40f6ab5064a628dc11b79b5e571dc9444efac093 (diff) | |
download | mpv-b68f9fef32971095836ea6bbeb2f12af417120d2.tar.bz2 mpv-b68f9fef32971095836ea6bbeb2f12af417120d2.tar.xz |
cleanup: shut up more warnings
Diffstat (limited to 'stream/tv.c')
-rw-r--r-- | stream/tv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/stream/tv.c b/stream/tv.c index 5ebd4bf59c..64d7b4413e 100644 --- a/stream/tv.c +++ b/stream/tv.c @@ -264,8 +264,10 @@ static int norm_from_string(tvi_handle_t *tvh, char* norm) str[sizeof(str)-1] = '\0'; ret=funcs->control(tvh->priv, TVI_CONTROL_SPC_GET_NORMID, str); - if(ret==TVI_CONTROL_TRUE) - return *(int *)str; + if (ret == TVI_CONTROL_TRUE) { + int *v = (int *)str; + return *v; + } if(ret!=TVI_CONTROL_UNKNOWN) { |