[Bug 702215] pbutils: descriptions: Allow smart codec tag handling

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jun 14 06:26:23 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=702215
  GStreamer | gst-plugins-base | unspecified

--- Comment #5 from Edward Hervey <bilboed at gmail.com> 2013-06-14 13:26:18 UTC ---
(In reply to comment #2)
> (From update of attachment 246780 [details])
> That's a nice idea indeed. I only added these flags recently, that's why this
> function is like it is. Maybe we should just add a new function that doesn't
> take the tag argument? (_add_codec_to_tag_list?)

As Sebastian said, is it worth it ?

> 
> >+  /* Attempt to find tag classification */
> >+  if (codec_tag == NULL) {
> >+    /* Only use GST_TAG_{AUDIO|VIDEO|SUBTITLE}_CODEC for non-container formats */
> >+    if (info->flags == FLAG_AUDIO)
> >+      codec_tag = GST_TAG_AUDIO_CODEC;
> >+    else if (info->flags == FLAG_VIDEO)
> >+      codec_tag = GST_TAG_VIDEO_CODEC;
> >+    else if (info->flags == FLAG_SUB)
> >+      codec_tag = GST_TAG_SUBTITLE_CODEC;
> >+    else
> >+      codec_tag = GST_TAG_CODEC;
> >+  }
> 
> I think this checking for non-container formats should be done differently
> here, to be more future proof in case other flags are added. In particular, I
> intend to add flags to signal whether formats are parsable/ES streams soon.

It's private code ... so can be changed the moment other flags are
added/updated, no ?


(In reply to comment #3)
> Oh, and for containers (and tags like id3/ape) we should use
> GST_TAG_CONTAINER_FORMAT instead of GST_TAG_CODEC.

Was wondering if there was such a tag, stupidly I was search for
GST_TAG_<something>_CODEC :)

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list