summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvdnav.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2011-06-12 11:12:17 +0000
committerUoti Urpala <uau@mplayer2.org>2011-07-06 13:01:07 +0300
commit63fd6789057f89907dd92a0b8d0bd26fd44aaaf3 (patch)
tree67a3ed9072d893b6af26880c583d0d9365de36ab /stream/stream_dvdnav.c
parentd84c42b09f710afd09fe5a0910d6352fc1c11207 (diff)
downloadmpv-63fd6789057f89907dd92a0b8d0bd26fd44aaaf3.tar.bz2
mpv-63fd6789057f89907dd92a0b8d0bd26fd44aaaf3.tar.xz
cosmetics: stream_dvdnav.c: Remove pointless ()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33604 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_dvdnav.c')
-rw-r--r--stream/stream_dvdnav.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c
index d5b12dc9f6..6bdc59d8a4 100644
--- a/stream/stream_dvdnav.c
+++ b/stream/stream_dvdnav.c
@@ -410,7 +410,7 @@ static int control(stream_t *stream, int cmd, void* arg) {
{
case STREAM_CTRL_SEEK_TO_CHAPTER:
{
- int chap = *((unsigned int *)arg)+1;
+ int chap = *(unsigned int *)arg+1;
if(chap < 1 || dvdnav_current_title_info(priv->dvdnav, &tit, &part) != DVDNAV_STATUS_OK)
break;
@@ -426,21 +426,21 @@ static int control(stream_t *stream, int cmd, void* arg) {
break;
if(!part)
break;
- *((unsigned int *)arg) = part;
+ *(unsigned int *)arg = part;
return 1;
}
case STREAM_CTRL_GET_CURRENT_CHAPTER:
{
if(dvdnav_current_title_info(priv->dvdnav, &tit, &part) != DVDNAV_STATUS_OK)
break;
- *((unsigned int *)arg) = part - 1;
+ *(unsigned int *)arg = part - 1;
return 1;
}
case STREAM_CTRL_GET_TIME_LENGTH:
{
if(priv->duration || priv->still_length)
{
- *((double *)arg) = (double)priv->duration / 1000.0;
+ *(double *)arg = (double)priv->duration / 1000.0;
return 1;
}
break;
@@ -448,7 +448,7 @@ static int control(stream_t *stream, int cmd, void* arg) {
case STREAM_CTRL_GET_ASPECT_RATIO:
{
uint8_t ar = dvdnav_get_video_aspect(priv->dvdnav);
- *((double *)arg) = !ar ? 4.0/3.0 : 16.0/9.0;
+ *(double *)arg = !ar ? 4.0/3.0 : 16.0/9.0;
return 1;
}
case STREAM_CTRL_GET_CURRENT_TIME:
@@ -457,7 +457,7 @@ static int control(stream_t *stream, int cmd, void* arg) {
tm = dvdnav_get_current_time(priv->dvdnav)/90000.0f;
if(tm != -1)
{
- *((double *)arg) = tm;
+ *(double *)arg = tm;
return 1;
}
break;
@@ -474,7 +474,7 @@ static int control(stream_t *stream, int cmd, void* arg) {
uint32_t curr, angles;
if(dvdnav_get_angle_info(priv->dvdnav, &curr, &angles) != DVDNAV_STATUS_OK)
break;
- *((int *)arg) = angles;
+ *(int *)arg = angles;
return 1;
}
case STREAM_CTRL_GET_ANGLE:
@@ -482,13 +482,13 @@ static int control(stream_t *stream, int cmd, void* arg) {
uint32_t curr, angles;
if(dvdnav_get_angle_info(priv->dvdnav, &curr, &angles) != DVDNAV_STATUS_OK)
break;
- *((int *)arg) = curr;
+ *(int *)arg = curr;
return 1;
}
case STREAM_CTRL_SET_ANGLE:
{
uint32_t curr, angles;
- int new_angle = *((int *)arg);
+ int new_angle = *(int *)arg;
if(dvdnav_get_angle_info(priv->dvdnav, &curr, &angles) != DVDNAV_STATUS_OK)
break;
if(new_angle>angles || new_angle<1)