[FFmpeg-devel] Realmedia patch
Ronald S. Bultje
rsbultje
Sat Aug 30 16:39:55 CEST 2008
Hi Michael,
On Thu, Aug 21, 2008 at 12:05 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Mon, Aug 18, 2008 at 10:21:35AM -0400, Ronald S. Bultje wrote:
>> @@ -1263,24 +1403,25 @@
>>
>> av_log(s, AV_LOG_DEBUG, "hello state=%d\n", rt->state);
>>
>> + if (!(rt->real_stream && rt->no_streams_chosen_yet)) {
>> + if (rt->state == RTSP_STATE_PAUSED) {
>> - if (rt->state == RTSP_STATE_PAUSED) {
>> + snprintf(cmd, sizeof(cmd),
>> + "PLAY %s RTSP/1.0\r\n",
>> + s->filename);
>> - snprintf(cmd, sizeof(cmd),
>> - "PLAY %s RTSP/1.0\r\n",
>> - s->filename);
>> + } else {
>> - } else {
>
> cosmetics ...
To best address the cosmetics, I'd like to apply a small cosmetics
patch to rtsp_pause() and rtsp_play(), see attached. Is that OK? With
attached, I can simply add an if(){ ... } around the relevant part,
but the "else" maks that difficult in the current version. My patch
removes the "else" case, which isn't needed since if() returns.
Ronald
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rtsp-remove-pauseplay-else.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080830/6ab56bbe/attachment.asc>
More information about the ffmpeg-devel
mailing list