Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dvdplayer: add a method to avoid requeting HTTP Header #7407

Merged
merged 1 commit into from
Jul 12, 2015

Conversation

FernetMenta
Copy link
Contributor

This provides a means to instruct dvdplayer not to request HTTP header. dvdplayer clients pass a fileitem to dvdplayer::OpenFile. dvdplayer will use the information provided by fileItem (CFileItem::ContentLookup() ) to decode if further header requests will be done.

@Paxxi
Copy link
Member

Paxxi commented Jul 8, 2015

thanks @FernetMenta had mostly forgotten about this after grooveshark died.

@Paxxi
Copy link
Member

Paxxi commented Jul 8, 2015

I think it looks good, I generally don't like bool parameters as it's hard to know what they mean without looking up the definition, don't think it would be worth the work to go for a flag of some sort though.

+1 from me.

On a sidenote, shouldn't path param be changed to a string whenever someone gets around to it?

@@ -87,7 +87,8 @@ bool DVDPlayerCodec::Init(const std::string &strFile, unsigned int filecache)
return false;
}

if (!m_pInputStream->Open(strFileToOpen.c_str(), m_strContentType))
// TODO: XXX

This comment was marked as spam.

This comment was marked as spam.

@Paxxi Paxxi added the Type: Feature non-breaking change which adds functionality label Jul 11, 2015
@Paxxi Paxxi added this to the J**** 16.0-alpha1 milestone Jul 11, 2015
@Paxxi
Copy link
Member

Paxxi commented Jul 11, 2015

Rebase, maybe change the todo to what you said and go ahead and merge

@FernetMenta
Copy link
Contributor Author

done

@fritsch
Copy link
Member

fritsch commented Jul 12, 2015

jenkins build this please

MartijnKaijser added a commit that referenced this pull request Jul 12, 2015
dvdplayer: add a method to avoid requeting HTTP Header
@MartijnKaijser MartijnKaijser merged commit 8d78d4a into xbmc:master Jul 12, 2015
@FernetMenta FernetMenta deleted the content branch July 17, 2015 05:09
@tommyv
Copy link

tommyv commented Aug 3, 2015

Sorry, can you elaborate more on this "I implemented it - but the users of this features don't want / need it anymore ... now SetMimeType seems to work by accident so their interest is zero ... and I don't care too much, just wanted to help them." ? Thank you

@fritsch
Copy link
Member

fritsch commented Aug 3, 2015

In order to force dvdplayer to not doing head requests, we need a method that makes sure it does not do it. This needs integrating into python api, like: https://github.com/fritsch/xbmc/commits/pymaster cause SetMimeType is not what one wants to misuse for this.

@tommyv
Copy link

tommyv commented Aug 3, 2015

Thanks, just wanted to know if this is a feature that is still worked on. Unfortunately it is necessary for a handful of users still using crappy servers/stream providers...

@fritsch
Copy link
Member

fritsch commented Aug 3, 2015

So - then. You are free to pick it up, test it and PR it. See it as a present from me to you :-)

@tommyv
Copy link

tommyv commented Aug 3, 2015

Thank you so much ! :-)

Excuse my ignorance, is it already included in the nightlies ?

@fritsch
Copy link
Member

fritsch commented Aug 3, 2015

No - I just wrote it. Find someone that understands it and picks it for you. I don't really care.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature non-breaking change which adds functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants