Changeset 30933
- Timestamp:
- 11/11/14 19:46:55 (9 years ago)
- Location:
- titan/titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/player.h
r30753 r30933 859 859 if(!GST_IS_OBJECT(source)) return ret; 860 860 sourceName = gst_object_get_name(source); 861 862 debug(150, "gst type: %s", GST_MESSAGE_TYPE_NAME(msg)); 861 863 862 864 switch(GST_MESSAGE_TYPE(msg)) … … 1188 1190 ret = gstbuscall(bus, message, &data); 1189 1191 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 1191 1209 } 1192 1210 else -
titan/titan/struct.h
r30921 r30933 1306 1306 #ifdef EPLAYER4 1307 1307 int bufferpercent; 1308 gint avgInRate; 1309 gint avgOutRate; 1310 gint64 bufferingLeft; 1308 // gint avgInRate; 1309 // gint avgOutRate; 1310 // gint64 bufferingLeft; 1311 gint64 pts; 1311 1312 #endif 1312 1313 int random;
Note: See TracChangeset
for help on using the changeset viewer.