From 7ab7f62dc2a567664e82b7acfe126e4ba83ea56e Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Sun, 20 Nov 2005 17:04:55 +0000 Subject: gst/matroska/matroska-mux.c: Replace Original commit message from CVS: 2005-11-20 Julien MOUTTE * gst/matroska/matroska-mux.c: (gst_matroska_mux_start): Replace GST_PAD_IS_USABLE by something approaching it. --- gst/matroska/matroska-mux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gst') diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c index bba6ee23..8586c9f1 100644 --- a/gst/matroska/matroska-mux.c +++ b/gst/matroska/matroska-mux.c @@ -1087,7 +1087,8 @@ gst_matroska_mux_start (GstMatroskaMux * mux) collect_pad = (GstMatroskaPad *) collected->data; thepad = collect_pad->collect.pad; - if (collect_pad->track->codec_id != 0) { + if (gst_pad_is_linked (thepad) && gst_pad_is_active (thepad) && + collect_pad->track->codec_id != 0) { collect_pad->track->num = tracknum++; child = gst_ebml_write_master_start (ebml, GST_MATROSKA_ID_TRACKENTRY); gst_matroska_mux_track_header (mux, collect_pad->track); -- cgit