diff options
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) { |