Changeset 30933


Ignore:
Timestamp:
11/11/14 19:46:55 (9 years ago)
Author:
obi
Message:

mipsel add gst eof work

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/player.h

    r30753 r30933  
    859859        if(!GST_IS_OBJECT(source)) return ret;
    860860        sourceName = gst_object_get_name(source);
     861
     862        debug(150, "gst type: %s", GST_MESSAGE_TYPE_NAME(msg));
    861863
    862864        switch(GST_MESSAGE_TYPE(msg))
     
    11881190                        ret = gstbuscall(bus, message, &data);
    11891191                        gst_message_unref(message);
    1190                 }
     1192                }               
     1193
     1194// eof workaround for some mp4 files.
     1195                gint64 pts = 0;
     1196                pts = playergetpts();
     1197
     1198                if(status.pts != pts || pts == 0 || status.pause == 1 /*|| status.prefillbuffer == 1*/)
     1199                {
     1200                        //debug(150, "status.pts=%llu / pts=%llu\n", status.pts, pts);
     1201                        status.pts = pts;
     1202                }
     1203                else
     1204                {
     1205                        debug(150, "gst player eof - workaround");
     1206                        ret = 0;
     1207                }
     1208// eof workaround done
    11911209        }
    11921210        else
  • titan/titan/struct.h

    r30921 r30933  
    13061306#ifdef EPLAYER4
    13071307        int bufferpercent;
    1308         gint avgInRate;
    1309         gint avgOutRate;
    1310         gint64 bufferingLeft;
     1308//      gint avgInRate;
     1309//      gint avgOutRate;
     1310//      gint64 bufferingLeft;
     1311        gint64 pts;
    13111312#endif
    13121313        int random;
Note: See TracChangeset for help on using the changeset viewer.