GNOME Bugzilla – Bug 679456
videodecoder: fix compiler optimization hint macro usage
Last modified: 2012-10-28 23:12:42 UTC
Created attachment 218101 [details] [review] videodecoder: Fix the compiler optimization hint macro usage. videodecoder: Fix the compiler optimization hint macro usage. As far as the output_state->caps is not explicitly setting(which is the usual case), gst_video_decoder_set_src_caps should create the caps for src pad from output_state->info which is G_LIKELY case...
Currently there is no case in which the "output_state->caps != NULL".. Since i haven't seen any option to set the output_state->caps. So what can i do to set a custom caps on the src pad of decoder??? Because it seems that gst_video_set_output_state () is not touching the caps of the output_state... How about a new API to set the the output_state->caps explicitly ??
hm,,,for comment 1, state = set_output_state() state->caps = caps is fine for me :)
Ok, fair enough, I've pushed this, but without the compiler hint. This is not an often-used code path, we should not litter the code with such optimisation macros here IMHO. I'm not sure I understand comment 1 and comment 2. It sounds like a support question and appears unrelated to the patch? (Please re-open or file a new bug if not)