[Bug 738416] decodebin: Fix autoplugging of parser elements
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Tue Oct 21 02:33:06 PDT 2014
https://bugzilla.gnome.org/show_bug.cgi?id=738416
GStreamer | gst-plugins-base | git
--- Comment #13 from sreerenj <bsreerenj at gmail.com> 2014-10-21 09:33:01 UTC ---
(In reply to comment #12)
> Review of attachment 288985 [details]:
>
> I think in general it's enough to test if the previous element is also a
> parser, checking the media type seems not needed. It's not like some parser is
> going to convert audio to video or otherwise change the media type in such a
> way.
Honestly I thought about that before, but just added for better clarity :)
Will rearrange that.
>
> ::: gst/playback/gstdecodebin2.c
> @@ +2135,3 @@
> +
> + is_video_parser =
> + strstr (classification, "Video") != NULL ? TRUE : FALSE;
>
> For video we also use "Image" in some places
>
> @@ +2141,3 @@
> + if (!is_video_parser && !is_audio_parser)
> + is_subtitle_parser =
> + strstr (classification, "Subtitle") != NULL ? TRUE : FALSE;
>
> And for subtitles there's also "SubPicture"
Okay, Thanks for the review
--
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