mmstreaming code question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



Hi,

So Idded some debugging (since Winsock doesn't store things in errno) and recompiled and I now see that the error is a 10054 (WSACONNRESET) aka connection reset by peer. Does anyone have any idea why this would be happening on an mms stream while it is buffering? 


Thanks,
Andrew

> From: bvrct hotmail.com
> To: mplayer-userst mplayerhq.hu
> Date: Fri, 19 Dec 2008 12:42:22 -0500
> Subject: mmstreaming code question
> 
> 
> Hi,
> 
> I'mrying to figure out why I'm experiencing some weird behaviour with mms streaming on XBMC. Now before I get flamed and told that it's an XBMC problem, just hear me out. I'm perfectly willing to accept that it could be but I figure the people reading this list understand streaming protocols much better than I do so I'm just covering my bases and the code in question is the same in XBMC and in the MPlayer svn.
> 
> Ifou look at stream/asf_mmst_streaming.c
> 
> There's bit there called get_data in which there's a call to recv while trying to fill up the buffer. 
> 
>en = recv (s, &buf[total], count-total, 0);
> 
>     if (len<=0) {
>       perror ("readrror:");
>      eturn 0;
>     }
> 
> Now,his happens during the call to 
> 
>     if (!get_data (s, data, packet_len)) {
>       mp_msg(MSGT_NETWORK,MSGL_ERR,MSGTR_MPDEMUX_MMST_MediaDataReadFailed);
>      eturn 0;
>     }
> 
> in get_media_packet. What I'meing is that it hits the perror. Now, from recv documentation at (http://www.opengroup.org/onlinepubs/009695399/functions/recv.html) I gather that recv can return:
> 
> "Uponuccessful completion, recv() shall return the length of the message in bytes. If no messages are available to be
>eceived and the peer has performed an orderly shutdown, recv() shall return 0. Otherwise, -1 shall be returned and
>rrno set to indicate the error."
> 
> Now Inderstand I'm going to have to recompile this badboy and print out the errno to get more information, but I'm wondering, if the return isn't a negative number and is 0, does this mean that the server on the other end just closed the connection? Has anyone seen similar behaviour with mms streaming?
> 
> Thanks,
> Andrew
> 
> _________________________________________________________________
> Life onour PC is safer, easier, and more enjoyable with Windows Vista?. 
> http://clk.atdmt.com/MRT/go/127032870/direct/01/
> _______________________________________________
>Player-users mailing list
>Player-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users

_________________________________________________________________
It?she same Hotmail?. If by ?same? you mean up to 70% faster.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad1_122008


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux