# HG changeset patch # User rbultje # Date 1220277084 0 # Node ID a0098594ab906ea003b7b0561cd5cc6f1a80f0e1 # Parent d8fce96bb3abf507f18bac101aa74ddc4a56fd86 Remove useless "else" case in if X { A; return }; else { B }. See discussion in "Realmedia patch" thread on mailinglist. diff -r d8fce96bb3ab -r a0098594ab90 rtsp.c --- a/rtsp.c Mon Sep 01 13:47:53 2008 +0000 +++ b/rtsp.c Mon Sep 01 13:51:24 2008 +0000 @@ -1343,10 +1343,9 @@ rtsp_send_cmd(s, cmd, reply, NULL); if (reply->status_code != RTSP_STATUS_OK) { return -1; - } else { - rt->state = RTSP_STATE_PLAYING; - return 0; } + rt->state = RTSP_STATE_PLAYING; + return 0; } /* pause the stream */ @@ -1367,10 +1366,9 @@ rtsp_send_cmd(s, cmd, reply, NULL); if (reply->status_code != RTSP_STATUS_OK) { return -1; - } else { - rt->state = RTSP_STATE_PAUSED; - return 0; } + rt->state = RTSP_STATE_PAUSED; + return 0; } static int rtsp_read_seek(AVFormatContext *s, int stream_index,