oggdemux: remove redundant fields

This commit is contained in:
Wim Taymans 2009-12-10 16:09:09 +01:00
parent 43bdb13ec2
commit d18118418e
2 changed files with 0 additions and 8 deletions

View file

@ -603,10 +603,6 @@ gst_ogg_demux_chain_peer (GstOggPad * pad, ogg_packet * packet)
if (packet->granulepos < 0) if (packet->granulepos < 0)
goto done; goto done;
/* store current granule pos */
ogg->current_granule = gst_ogg_stream_granulepos_to_granule (&pad->map,
packet->granulepos);
/* convert to time */ /* convert to time */
current_time = gst_ogg_stream_get_end_time_for_granulepos (&pad->map, current_time = gst_ogg_stream_get_end_time_for_granulepos (&pad->map,
packet->granulepos); packet->granulepos);
@ -694,7 +690,6 @@ gst_ogg_pad_submit_packet (GstOggPad * pad, ogg_packet * packet)
packet->granulepos); packet->granulepos);
if (granule != -1) { if (granule != -1) {
GST_DEBUG_OBJECT (ogg, "%p has granulepos %" G_GINT64_FORMAT, pad, granule); GST_DEBUG_OBJECT (ogg, "%p has granulepos %" G_GINT64_FORMAT, pad, granule);
ogg->current_granule = granule;
pad->current_granule = granule; pad->current_granule = granule;
} }
@ -3174,7 +3169,6 @@ gst_ogg_demux_change_state (GstElement * element, GstStateChange transition)
break; break;
case GST_STATE_CHANGE_READY_TO_PAUSED: case GST_STATE_CHANGE_READY_TO_PAUSED:
ogg_sync_reset (&ogg->sync); ogg_sync_reset (&ogg->sync);
ogg->current_granule = -1;
ogg->running = FALSE; ogg->running = FALSE;
ogg->segment_running = FALSE; ogg->segment_running = FALSE;
gst_segment_init (&ogg->segment, GST_FORMAT_TIME); gst_segment_init (&ogg->segment, GST_FORMAT_TIME);

View file

@ -157,8 +157,6 @@ struct _GstOggDemux
GstEvent *event; GstEvent *event;
GstEvent *newsegment; /* pending newsegment to be sent from _loop */ GstEvent *newsegment; /* pending newsegment to be sent from _loop */
gint64 current_granule;
/* annodex stuff */ /* annodex stuff */
gboolean have_fishead; gboolean have_fishead;
gint64 basetime; gint64 basetime;