qtdemux: Use GList to manage QtDemuxStream

* Move to GList from static array
* Logging track-id instead of array index. It's more meaningful.

https://bugzilla.gnome.org/show_bug.cgi?id=684790
This commit is contained in:
Seungha Yang 2018-05-08 19:39:02 +09:00 committed by Edward Hervey
parent aca8d32437
commit b5245be1b1
2 changed files with 230 additions and 238 deletions

File diff suppressed because it is too large Load diff

View file

@ -45,8 +45,6 @@ G_BEGIN_DECLS
#define GST_QT_DEMUX_PRIVATE_TAG "private-qt-tag"
#define GST_QT_DEMUX_CLASSIFICATION_TAG "classification"
#define GST_QTDEMUX_MAX_STREAMS 32
typedef struct _GstQTDemux GstQTDemux;
typedef struct _GstQTDemuxClass GstQTDemuxClass;
typedef struct _QtDemuxStream QtDemuxStream;
@ -73,7 +71,9 @@ struct _GstQTDemux {
gboolean posted_redirect;
QtDemuxStream *streams[GST_QTDEMUX_MAX_STREAMS];
/* list of QtDemuxStream */
GList *active_streams;
gint n_streams;
gint n_video_streams;
gint n_audio_streams;