some space cleanup and debug fixes

Original commit message from CVS:
some space cleanup and debug fixes
This commit is contained in:
Thomas Vander Stichele 2006-03-02 17:04:55 +00:00
parent 1e9f5c43ad
commit b5947790c2

View file

@ -1081,17 +1081,17 @@ gst_ogg_mux_collected (GstCollectPads * pads, GstOggMux * ogg_mux)
return GST_FLOW_OK;
}
if (best)
GST_DEBUG_OBJECT (ogg_mux, "best pad %" GST_PTR_FORMAT " (oggpad %p)"
" pulling %" GST_PTR_FORMAT, best->collect.pad, best, ogg_mux->pulling);
if (!best) { /* EOS : FIXME !! We need to handle EOS correctly, and set EOS
if (!best) {
/* EOS : FIXME !! We need to handle EOS correctly, and set EOS
flags on the ogg pages. */
GST_DEBUG_OBJECT (ogg_mux, "Pushing EOS");
gst_pad_push_event (ogg_mux->srcpad, gst_event_new_eos ());
return GST_FLOW_WRONG_STATE;
}
GST_DEBUG_OBJECT (ogg_mux, "best pad %" GST_PTR_FORMAT " (oggpad %p)"
" pulling %" GST_PTR_FORMAT, best->collect.pad, best, ogg_mux->pulling);
/* if we were already pulling from one pad, but the new "best" buffer is
* from another pad, we need to check if we have reason to flush a page
* for the pad we were pulling from before */
@ -1259,8 +1259,8 @@ gst_ogg_mux_collected (GstCollectPads * pads, GstOggMux * ogg_mux)
* so update the timestamp that we will give to the page */
pad->timestamp = timestamp;
pad->timestamp_end = timestamp_end;
GST_DEBUG_OBJECT (pad, "Timestamp of pad is %" GST_TIME_FORMAT
", granulepos is %lld", GST_TIME_ARGS (timestamp), granulepos);
GST_DEBUG_OBJECT (pad, GST_GP_FORMAT " timestamp of pad is %"
GST_TIME_FORMAT, granulepos, GST_TIME_ARGS (timestamp));
}
/* push the page */
@ -1295,7 +1295,7 @@ gst_ogg_mux_collected (GstCollectPads * pads, GstOggMux * ogg_mux)
ogg_mux->pulling = NULL;
}
/* Update the timestamp, if neccesary, since and future page will have at
/* Update the timestamp, if necessary, since any future page will have at
* least this timestamp.
*/
if (pad->timestamp < timestamp_end) {