diff options
Diffstat (limited to 'src/xine-engine/video_decoder.c')
-rw-r--r-- | src/xine-engine/video_decoder.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/xine-engine/video_decoder.c b/src/xine-engine/video_decoder.c index d88f1656c..c03030b31 100644 --- a/src/xine-engine/video_decoder.c +++ b/src/xine-engine/video_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_decoder.c,v 1.50 2001/09/12 22:18:47 guenter Exp $ + * $Id: video_decoder.c,v 1.51 2001/09/14 21:25:55 richwareham Exp $ * */ @@ -197,8 +197,15 @@ void *video_decoder_loop (void *this_gen) { if (this->cur_video_decoder_plugin != decoder) { - if (this->cur_video_decoder_plugin) + if (this->cur_video_decoder_plugin) { this->cur_video_decoder_plugin->close (this->cur_video_decoder_plugin); + + /* Since we are changing decoders, warn metronom of a possible + * PTS discontinuity */ + + this->metronom->expect_video_discontinuity (this->metronom); + this->metronom->expect_audio_discontinuity (this->metronom); + } this->cur_video_decoder_plugin = decoder; this->cur_video_decoder_plugin->init (this->cur_video_decoder_plugin, this->video_out); |