001-1.1.6-0010-Samsung-bookmark-go-back-to-the-beginning-of-the-mov.patch 820 B

12345678910111213141516171819202122232425262728
  1. From 126f0f5cb8cd93eef448e2e5bf7a2c0d8d5183fb Mon Sep 17 00:00:00 2001
  2. From: Eduardo Rocha <folhabranca@gmail.com>
  3. Date: Sun, 14 Sep 2014 14:11:51 -0300
  4. Subject: [PATCH] Samsung bookmark - go back to the beginning of the movie if
  5. less than 30 seconds was played.
  6. ---
  7. upnpsoap.c | 4 ++++
  8. 1 file changed, 4 insertions(+)
  9. diff --git a/upnpsoap.c b/upnpsoap.c
  10. index 4f6f22e..0f19035 100644
  11. --- a/upnpsoap.c
  12. +++ b/upnpsoap.c
  13. @@ -1924,6 +1924,10 @@ SamsungSetBookmark(struct upnphttp * h, const char * action)
  14. ParseNameValue(h->req_buf + h->req_contentoff, h->req_contentlen, &data, 0);
  15. ObjectID = GetValueFromNameValueList(&data, "ObjectID");
  16. PosSecond = GetValueFromNameValueList(&data, "PosSecond");
  17. +
  18. + if ( atoi(PosSecond) < 30 )
  19. + PosSecond = "0";
  20. +
  21. if( ObjectID && PosSecond )
  22. {
  23. int ret;
  24. --
  25. 2.11.0