projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59df7d4
)
servicemp3 : fix getSubtitleType
author
hschang
<chang@dev3>
Wed, 8 Jan 2014 07:31:47 +0000
(16:31 +0900)
committer
hschang
<chang@dev3>
Wed, 8 Jan 2014 07:34:03 +0000
(16:34 +0900)
lib/service/servicemp3.cpp
patch
|
blob
|
history
diff --git
a/lib/service/servicemp3.cpp
b/lib/service/servicemp3.cpp
index
beee3a9
..
0e7cca9
100755
(executable)
--- a/
lib/service/servicemp3.cpp
+++ b/
lib/service/servicemp3.cpp
@@
-1134,6
+1134,11
@@
subtype_t getSubtitleType(GstPad* pad, gchar *g_codec=NULL)
subtype_t type = stUnknown;
GstCaps* caps = gst_pad_get_negotiated_caps(pad);
+ if (!caps && !g_codec)
+ {
+ caps = gst_pad_get_allowed_caps(pad);
+ }
+
if ( caps )
{
GstStructure* str = gst_caps_get_structure(caps, 0);